파이썬
[백준 2577] 숫자의 개수(파이썬)
홍시홍
2020. 8. 19. 22:54
요구사항
곱셈 연산을 한 결과에서 0~9까지의 각 숫자가 몇번 나왔는지 출력하기
참고
파이썬에서는 list.count(value)로 몇번 나왔는지 count해주는 메소드가 있다
풀이
a=int(input())
b=int(input())
c=int(input())
temp=str(a*b*c)
for i in range(10):
now_str=str(i)
print(temp.count(now_str))