DANIELOGIC
[Python] 백준 2577번 숫자의 개수 본문
[Python] 백준 2577번 숫자의 개수
https://www.acmicpc.net/problem/2577
문제

코드
sum = 1
for i in range(3):
sum *= int(input())
sum = str(sum)
l = [0,0,0,0,0,0,0,0,0,0]
for i in sum:
l[int(i)] += 1
for i in l:
print(i)
'Algorithm > 백준' 카테고리의 다른 글
| [Python] 백준 2309번 일곱 난쟁이 (0) | 2024.06.25 |
|---|---|
| [Python] 백준 2822번 점수 계산 (0) | 2024.06.25 |
| [Python] 백준 10991번 별 찍기 - 16 (0) | 2024.06.24 |
| [Python] 백준 2921번 도미노 (0) | 2024.06.24 |
| [Python] 백준 8892번 팰린드롬 (0) | 2024.06.24 |