ACM/ICPC WORLD FINAL 2015 Problem A

根据Fatima的研究,股票价格可以用特定方程式模拟。你需要编写程序找出给定价格序列中的最大价格下降。输入包含股票参数和价格序列,输出是最大的价格下降值。若无下降,则输出0。结果要求误差不超过10^-6。
摘要由CSDN通过智能技术生成

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值