UVa 357 - Let Me Count The Ways

357 - Let Me Count The Ways
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=293

Summary
Find the number of ways to calculate N using only coins of values (1,5,10,25,100 cents)

Explanation
Classical DP Coin change problem.

Gotchas
N limit is 30000, the limits in the PDF are wrong. Take care of output formatting.

Input
29999 1 4 30000

Output
There are 543065523200 ways to produce 29999 cents change. There is only 1 way to produce 1 cents change. There is only 1 way to produce 4 cents change. There are 543427145501 ways to produce 30000 cents change.