[백준/Python] 2577 - 숫자의 개수

orangesnail·2025년 3월 17일

백준

목록 보기
74/169

https://www.acmicpc.net/problem/2577


이 문제의 핵심: count("찾을문자") 함수 이용하기

a = int(input())
b = int(input())
c = int(input())

total = str(a * b * c)

for i in range(10):
    print(total.count(f"{i}"))
profile
초보입니다. 피드백 환영합니다 😗

0개의 댓글