版本比较
题解:P11235 「KTSC 2024 R1」最大化平均值
正文
增加 1 行删除 1 行
33 行未改动34353637383839404142156 行未改动全部展开33 行未改动#define x0 guanzhuyongchutafei#define y0 xiexiemiaousing namespace std;const int N = 1e6 + 5;int n, a[N], sum[N]; int n, a[N], sum[N];int fa[N], st[N], ed[N], sz[N], son[N];vector<int> e[N];int S(int l, int r){return sum[r] - sum[l - 1];}struct node{ //注意这个存的是向量不是点156 行未改动全部展开