2020-12-07|819阅|作者:德辉爱编程|举报 摘要:print('兑换方案:')
for n5 in range(1,20):
for n1 in range(1,100-n5):
n05=100-n1-n5
if n5*5+n1+n05*0.5==100:
prin
print('兑换方案:')
for n5 in range(1,20):
for n1 in range(1,100-n5):
n05=100-n1-n5
if n5*5+n1+n05*0.5==100:
print('方案',n5,':"5元{}张,1元{}张,5角{}张'.format(n5,n1,n05))