https://www.acmicpc.net/problem/2577
mul = 1
for i in range(0, 3):
mul *= int(input())
mul_list = list(str(mul))
num_dict = {
key: 0 for key in range(0, 10)
}
for m in mul_list:
value = num_dict.get(int(m), None)
num_dict[int(m)] = value + 1
for k, v in num_dict.items():
print(v)
반응형
'자료구조&알고리즘 > 알고리즘-문제풀이' 카테고리의 다른 글
[BAEKJOON] 4673-셀프 넘버 (0) | 2021.07.14 |
---|---|
[BAEKJOON] 2884-알람시계 (0) | 2021.06.30 |
Leetcode-easy-13. Roman to Integer (0) | 2020.07.15 |
Leetcode-easy-9. Palindrome Number (0) | 2020.07.14 |
Leetcode-easy-7. Reverse Integer (0) | 2020.07.14 |