반응형 25771 baekjoon - python - 2577 https://www.acmicpc.net/problem/2577 2577번: 숫자의 개수 첫째 줄에 A, 둘째 줄에 B, 셋째 줄에 C가 주어진다. A, B, C는 모두 100보다 같거나 크고, 1,000보다 작은 자연수이다. www.acmicpc.net # @Author YoungMinKim # baekjoon a=int(input()) b=int(input()) c=int(input()) result = a*b*c ls = [] for i in range(len(str(result))): ls.append(int(str(result)[i])) for j in range(10): print(ls.count(j)) 2020. 8. 25. 이전 1 다음 반응형