Python/code problem
[sw expert academy] 1970. 쉬운 거스름돈
승니
2022. 1. 15. 16:44
https://swexpertacademy.com/main/main.do
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
def dvd(sion,dend):
return sion //dend
T= int(input())
for t in range(1,T+1):
money= int(input())
print("#{}".format(t))
for i in [50000,10000,5000,1000,500,100,50,10]:
num=dvd(money,i)
money-=num*i
print(num,end=" ")
print("")