摘要: b题只需要把递增的地方累加起来,最后加上最大值减去最后一点的值即可ac代码#include#includeusing namespace std;int a[100005];int main(){ int ... 阅读全文