import sys
input = sys.stdin.readline
t = int(input())
for tc in range(t):
coin = [25, 10, 5,1]
result = []
c = int(input())
for i in coin:
result.append(c//i)
c = c%i
print(*result)
'문제풀이 > 백준(Boj) 문제풀이' 카테고리의 다른 글
[백준][그리디 알고리즘] 1744. 수 묶기 (파이썬/Python) (0) | 2021.10.03 |
---|---|
[백준][그리디 알고리즘] 1439. 뒤집기 (파이썬/Python) (0) | 2021.10.03 |
[백준][그리디 알고리즘] 1789. 수들의 합(파이썬/Python) (0) | 2021.10.02 |
[백준][그리디 알고리즘] 1946. 신입 사원(파이썬/Python) (0) | 2021.09.30 |
[백준][그리디 알고리즘] 10162. 전자레인지 (파이썬/Python) (0) | 2021.09.30 |