728x90
반응형
문제 링크
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())
multi = a*b*c
multi_str = str(multi)
for i in range(10):
cnt = multi_str.count(str(i))
print(cnt)
728x90
반응형
'알고리즘 정복하기! > 백준 문제풀이' 카테고리의 다른 글
백준 11720번 Python / Math (0) | 2022.02.08 |
---|---|
백준 10818번 Python / Math (0) | 2022.02.08 |
백준 15720번 Python / Greedy (0) | 2022.01.30 |
백준 11034번 Python / Greedy (0) | 2022.01.30 |
백준 2810번 Python / Greedy (0) | 2022.01.30 |
댓글