正文
增加 1 行删除 1 行
5 行未改动67891011121314101 行未改动全部展开5 行未改动难度:普及-思想:dp令 $p_i$ 为以位置 $i$ 结尾的最大子段和,看是否延续 $p_{i-1}$ 的最大字段。```cpp#include<bits/stdc++.h>using namespace std;int p[200010];101 行未改动全部展开5 行未改动67891011121314101 行未改动全部展开5 行未改动难度:普及-思想:dp令 $p_i$ 为以位置 $i$ 结尾的最大子段和,看是否延续 $p_{i-1}$ 的最大字段。```cpp#include<bits/stdc++.h>using namespace std;int p[200010];101 行未改动全部展开