t = int(input())
coin = [50000,10000,5000,1000,500,100,50,10]
for tc in range(1,t+1):
n = int(input())
result = []
for i in coin:
result.append(n//i)
n = n % i
print(f'#{tc}')
print(*result)
'문제풀이 > SW Expert Academy' 카테고리의 다른 글
[SWEA][D2] 1961. 숫자 배열 회전 (파이썬/Python) (0) | 2021.09.02 |
---|---|
[SWEA][D2] 1966. 숫자를 정렬하자 (파이썬/Python) (0) | 2021.09.02 |
[SWEA][D2] 1974. 스도쿠 검증 (파이썬/Python) (0) | 2021.09.01 |
[SWEA][D2] 1979. 어디에 단어가 들어갈 수 있을까 (파이썬/Python) (0) | 2021.09.01 |
[SWEA][D2] 1976. 시각 덧셈 (파이썬/Python) (0) | 2021.08.31 |