摘要: Description 给一个长度为 $n$ 的序列,任意移动一个数,使得 $\sum a[i]\times i$ 最大。 $2\le n\le 2\times 10^5,\left|a[i]\right|\le 10^6$ Solution 考虑不移动时答案为 $ans$ ,进行一次移动后答案为 阅读全文
posted @ 2018-07-25 16:53 aziint 阅读(200) 评论(0) 推荐(0) 编辑
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.