#2029. 邮票问题
邮票问题
Description
有四种面值的邮票,分别是 20 元,10 元,5 元,1 元,如果要在包裹上贴价格恰好为 n 元的邮票,最少需要多少张邮票?
Format
Input
单个整数表示 n.
Output
单个整数表示邮票的最少张数。
Samples
16
3
Limitation
对于 50% 的数据,1≤n≤1,000; 对于 100% 的数据,1≤n≤1,000,000。
统计
相关
在下列比赛中:
有四种面值的邮票,分别是 20 元,10 元,5 元,1 元,如果要在包裹上贴价格恰好为 n 元的邮票,最少需要多少张邮票?
单个整数表示 n.
单个整数表示邮票的最少张数。
16
3
对于 50% 的数据,1≤n≤1,000; 对于 100% 的数据,1≤n≤1,000,000。