题目来源:http://noi.openjudge.cn/ch0206/2421/
2421: Exchange Rates
总时间限制: 1000ms 内存限制: 65536kB
描述
Nowthat the Loonie is hovering about par with the Greenback, you have decided touse your $1000 entrance scholarship to engage in currency speculation. So yougaze into a crystal ball which predicts the closing exchange rate betweenCanadian and U.S. dollars for each of the next several days. On any given day,you can switch all of your money from Canadian to U.S. dollars, or vice versa,at the prevailing exchange rate, less a 3% commission, less any fraction of acent.
Assuming your crystal ball is correct, what's the maximum amount of money youcan hav