백준 2720번 Python 풀이

Myeonggeun Shin·2025년 2월 6일

문제

백준 2720번
제목 : 세탁소 사장 동혁


풀이

# Python3
t = int(input())

for _ in range(t):
    c = int(input())

    for i in [25, 10, 5, 1]:
        print(c // i, end=' ')
        c %= i

    print()

0개의 댓글