본문 바로가기
알고리즘/백준

백준-2577번(숫자의 개수)-python

by nyeongha 2023. 11. 23.

백준-2577번(숫자의 개수)-python

a=int(input())
b=int(input())
c=int(input())
d=a*b*c
e=str(d)
li=[0,0,0,0,0,0,0,0,0,0]
for x in e:
    for y in range(10):
        if int(x)==y:
            li[y]+=1
            continue
for _ in li:
    print(_)