|
#2 Coins
In a country circulating coins exist in denominations of 1u (unit), 5u, 10u, 20u, 25u, 50u, and 100u. Your goal is to select X of these coins to make exactly 100u. What is the smallest value of X that makes it impossible to reach your goal?
Note: X > 0
硬币:有一个国家流通硬币面额为1u,5u,10u,20u,25u,50u和100u(u是货币单位). 你的目标是选出X个硬币刚好凑成100u. X最小为多少, 才能使得你的目标无法达到?
这个用SQL暴力很容易。 |
|