[UVA][DP] 10313 - Pay the Price
Problem B
Pay the Price
Input: standard input
Output: standard output
Time Limit: 2 seconds
Memory Limit: 32 MB
In
ancient days there was a country whose people had very interesting habits. Some
of them were lazy, some were very rich, some were very...