[백준] 2577번 : 숫자의 개수 - Python(파이썬)

강재원·2022년 10월 26일
0

[코딩테스트] Python

목록 보기
155/200



https://www.acmicpc.net/problem/2577

num=[]
arr=[0]*10
mul=1
for i in range(3):
    a=int(input())
    num.append(a)
    mul*=a
while mul>0:
    n=mul%10
    arr[n]+=1
    mul//=10
for i in range(10):
    print(arr[i])
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글