#19362. 找零钱
找零钱
说明
小智去超市买东西,买了不超过一百块的东西。收银员想尽量用少的纸币来找钱。纸币面额分为50 20 10 5 1 五种。请在知道要找多少钱n给小明的情况下,输出纸币数量最少的方案。 1<=n<=99;
输入格式
有多组数据 1<=n<=99;输出格式
对于每种数量不为0的纸币,输出他们的面值*数量,再加起来输出25
3220*1+5*1
20*1+10*1+1*2
25
3220*1+5*1
20*1+10*1+1*2
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.