版本比较
无
正文
增加 7 行删除 7 行
24 行未改动25262728293031323334293031323334353658 行未改动959697989910010110210310419 行未改动12412512612712812824 行未改动 t[u].lazy = 0; }}Node merge(Node x, Node y){ return { 0, 0, x.SUM + y.SUM, x.SQR + y.SQR, 0 }; Node ans; ans.SUM = x.SUM + y.SUM; ans.SQR = x.SQR + y.SQR; return ans;}void dfs(int u, int l, int r){ t[u].l = l; t[u].r = r;58 行未改动 } push_up(u);}int main(){ // 求条,完整代码:https://www.luogu.me/article/ze5j0i2u // 怎么到这儿就全WA了?但没有TLE ios::sync_with_stdio(0); ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);19 行未改动 } }}```https://htoj.com.cn/cpp/oj/problem/detail?pid=22069044966656&tid=22487080074240&gid=22487067878400&tab=3&submitId=37734003https://htoj.com.cn/cpp/oj/problem/detail?pid=22069044966656&tid=22487080074240&gid=22487067878400&tab=3&submitId=37736510