반응형
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))
반응형
'백준 문제풀이' 카테고리의 다른 글
| baekjoon - python - 2609 (0) | 2020.08.25 |
|---|---|
| baekjoon - python - 2588 (0) | 2020.08.25 |
| baekjoon - python - 2562 (0) | 2020.08.25 |
| baekjoon - python - 2558 (0) | 2020.08.25 |
| baekjoon - python - 2557 (0) | 2020.08.25 |
댓글