超市购物
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
超市购物
今天晚上小北的朋友们要来家里做客,于是小北来到超市购买一些必备的物品,已知小北带了四种面值的纸币,分别是20元、10元、5元、1元,并且假定每种纸币有无限张。已知小北购物完成之后总共需要支付 元,请问最少需要多少张纸币?
输入格式
- 单个整数:表示 。
输出格式
- 单个整数:表示纸币的最少张数。
输入输出样例
24
5
25
2
数据范围
[NOI2025] 蓝图杯夏令营选拔赛(编程)
- Status
- Done
- Rule
- OI
- Problem
- 10
- Start at
- 2025-7-4 18:00
- End at
- 2025-7-6 21:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 172