版本比较
10.16模拟赛记录
正文
增加 4 行删除 4 行
159 行未改动全部展开160161162163164164165166167168388 行未改动全部展开55755855956056156156256356456456556656756839 行未改动60860961061161261261361461561620 行未改动159 行未改动全部展开 if(!flag) cout << "bad\n"; else if(lim == 2e9) cout << "inf\n"; else cout << lim << '\n'; } } } return 0;}```## C-trip (我一眼就看出了Ta是个分层图)388 行未改动全部展开 } } void pushup(int rt) { if (mx[ls] > mx[rs]) { mx[rt] = mx[ls]; mx[rt] = mx[ls]; mxpos[rt] = mxpos[ls]; } else { mx[rt] = mx[rs]; mx[rt] = mx[rs]; mxpos[rt] = mxpos[rs]; } } void build(int rt, int l, int r) {39 行未改动 seg1.build(1, 2, n); seg2.build(1, 1, n); int q; cin >> q; rep(i, 1, q) { int op, l, r; int op, l, r; cin >> op >> l >> r; if (op == 1) { int x; cin >> x; b[l] += x;20 行未改动