题目来源:http://noi.openjudge.cn/ch0206/2421/
2421:Exchange Rates
总时间限制: 1000ms 内存限制: 65536kB
描述
Now that the Loonie is hovering about par with theGreenback, you have decided to use your $1000 entrance scholarship to engage incurrency speculation. So you gaze into a crystal ball which predicts theclosing exchange rate between Canadian and U.S. dollars for each of the nextseveral days. On any given day, you can switch all of your money from Canadianto U.S. dollars, or vice versa, at the prevailing exchange rate, less a 3%commission, less any fraction of a cent.
A