#T678. 硬币问题
硬币问题
Description
You have an unlimited number of coins with denominations of 1, 5, 10, 20, 50, 100. Given an amount w, determine the minimum number of coins needed to make up w.
Input Format
An integer w, representing the amount.
Output Format
The result of how many coins are needed to make up w (using denominations: 1, 5, 10, 20, 50, 100).
w must have a solution
Source
CodesOnline