https://www.acmicpc.net/problem/2577 2577번: 숫자의 개수 첫째 줄에 A, 둘째 줄에 B, 셋째 줄에 C가 주어진다. A, B, C는 모두 100보다 크거나 같고, 1,000보다 작은 자연수이다. www.acmicpc.net A = int(input()) B = int(input()) C = int(input()) num_list = list(str(A * B * C)) for i in range(10): print(num_list.count(str(i))) 숫자로 생각하고 코드를 작성하기보다 곱한 결과를 문자열로 변경한 뒤 각 문자의 수를 count로 세는 것이 간결하다.