#101. 例题1:硬币问题
例题1:硬币问题
题目描述
今有面值为 1、5、11 元的硬币各无限枚。 想要凑出 n 元,问需要的最少硬币数量。
输入格式
一行,一个正整数 n(1 ≤ n ≤ 10000)。输出格式
仅一行,一个正整数,表示需要的硬币个数。153
今有面值为 1、5、11 元的硬币各无限枚。 想要凑出 n 元,问需要的最少硬币数量。
153
By signing up a 大飞信奥 universal account, you can submit code and join discussions in all online judging services provided by us.