#solution_1
a = int(input(""))
b = int(input(""))
c = int(input(""))
add = str(a*b*c)
for i in range(10):
ci = str(i)
if ci in add:
print(add.count(ci))
else:
print(0)
#solution_2
a = int(input(""))
b = int(input(""))
c = int(input(""))
add = str(a*b*c)
for i in range(10):
ci = str(i)
print(add.count(ci))if ci in add else print(0)
문제출처: 백준
'Write-up > 백준' 카테고리의 다른 글
백준 4673번 - 셀프넘버(python) (0) | 2019.12.27 |
---|---|
백준 5622번 - 다이얼(python) (0) | 2019.12.26 |
백준 2675번 -문자열 반복(python) (0) | 2019.12.26 |
백준 11720 - 숫자의 합(python) (0) | 2019.12.22 |
백준 2562번 - 최댓값(python) (0) | 2019.12.22 |