UVa 147 - Dollars

147 - Dollars

 * http://acm.uva.es/p/v1/147.html

Summary
Count the number of ways we can form a certain amount.

Explanation
This is a standard Dynamic Programming - Subset Sum problem.

Optimizations

 * You can make the array smaller by noting that everything is a multiple of 5 cents.

Input
0.20 2.00 299.90 0.00

Output
0.20               4  2.00              293