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))
初级程序员
by: AlexNG 发表于:2020-12-26 15:36:53 顶(0) | 踩(0) 回复
1222
初级程序员
by: AlexNG 发表于:2020-12-26 15:36:53 顶(0) | 踩(0) 回复
1222
回复评论