ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

2.10号英语翻译

2022-02-10 23:35:14  阅读:273  来源: 互联网

标签:加元 Canadian money dollars crystal 英语翻译 your 2.10


题目来源:http://noi.openjudge.cn/ch0206/2421/

重点词汇:

engage in:.从事;

commission:n.佣金;

prevailing : adj.优势的,广布的;

crystal : n.水晶;

2421:Exchange Rates

     汇率

总时间限制: 
1000ms
 
内存限制: 
65536kB
描述
Now that the Loonie is hovering about par with the Greenback, you have decided to use your $1000 entrance scholarship to engage in currency speculation. So you gaze into a crystal ball which predicts the closing exchange rate between Canadian 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 a cent.
Assuming your crystal ball is correct, what's the maximum amount of money you can have, in Canadian dollars, when you're done?
现在加元徘徊在与美元相当的水平,你决定用你的·1000美元学费去从事货币投机。因此,您凝视着一个水晶球,它预测未来几天每一天加元和美元之间的收盘汇率。 在任何一天,您都可以将您的所有资金从加元转换为美元,反之亦然,按现行汇率减去 3% 的佣金,减去任何一分钱。

假设你的水晶球是正确的,当你完成后,你最多可以拥有多少加元?

输入
The input contains a number of test cases, followed by a line containing 0. Each test case begins with 0 <d ≤ 365, the number of days that your crystal ball can predict. d lines follow, giving the price of a U.S. dollar in Canadian dollars, as a real number.
输入包含许多测试用例,后跟包含 0 的行。每个测试用例以 0 <d ≤ 365 开头,即您的水晶球可以预测的天数。 接下来是 d 行,以加元表示美元的价格,作为实数。
输出
For each test case, output a line giving the maximum amount of money, in Canadian dollars and cents, that it is possible to have at the end of the last prediction, assuming you may exchange money on any subset of the predicted days, in order.
对于每个测试用例,输出一条以加元和美分表示的最大金额的行,假设您可以在预测日期的任何子集内兑换货币,则在最后一次预测结束时可能拥有的金额
样例输入
3
1.0500
0.9300
0.9900
2
1.0500
1.1000
0yo
样例输出
1001.60
1000.00
来源
Waterloo

标签:加元,Canadian,money,dollars,crystal,英语翻译,your,2.10
来源: https://www.cnblogs.com/qq-2556146261/p/15881514.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有