HDU 3401 Trade(单调队列优化DP)【模板】
Recently, lxhgww is addicted to stock, he finds some regular patterns after a few days' study.
He forecasts the next T days' stock market. On the i'th day, you can buy one stock with the price APi or sell one stock to get BPi.
There are some other limits
原创
2017-08-07 21:03:20 ·
411 阅读 ·
0 评论