Fatima Cynara is an analyst at Amalgamated Artichokes (AA). As with any company, AA has had some very good times as well as some bad ones. Fatima does trending analysis of the stock prices for AA, and she wants to determine the largest decline in stock prices over various time spans. For example, if over a span of time the stock prices were
19 19,
12 12,
13 13,
11 11,
20 20 and
14 14, then the largest decline would be
8 8 between the first and fourth price. If the last price had been
10 10 instead of
ACM/ICPC WORLD FINAL 2015 Problem A
最新推荐文章于 2021-08-28 23:38:41 发布
根据Fatima的研究,股票价格可以用特定方程式模拟。你需要编写程序找出给定价格序列中的最大价格下降。输入包含股票参数和价格序列,输出是最大的价格下降值。若无下降,则输出0。结果要求误差不超过10^-6。
摘要由CSDN通过智能技术生成