A = int(input())
B = int(input())
C = int(input())
multi = str(A * B * C)
for i in range(0, 10):
print(list(multi).count(str(i)))
https://www.acmicpc.net/problem/2577
2577번: 숫자의 개수
첫째 줄에 A, 둘째 줄에 B, 셋째 줄에 C가 주어진다. A, B, C는 모두 100보다 크거나 같고, 1,000보다 작은 자연수이다.
www.acmicpc.net
'Algorithm > 백준' 카테고리의 다른 글
[백준(BOJ) / python] 2920 - 음계 (0) | 2021.08.15 |
---|---|
[백준(BOJ) / python] 2908 - 상수 (0) | 2021.08.15 |
[백준(BOJ) / python] 2675 - 문자열 반복 (0) | 2021.08.15 |
[백준(BOJ) / python] 2562 - 최댓값 (0) | 2021.08.15 |
[백준(BOJ) / python] 1152 - 단어의 개수 (0) | 2021.08.15 |