版本比较
P15133 [ROIR 2026] 最后的滑动窗口问题
正文
增加 3 行删除 3 行
27 行未改动2829303132333435363738394041424344454665 行未改动27 行未改动vector<pii> vq[maxn];struct BIT {ll c[maxn];inline void init() {mems(c, 0);}inline void update(int x, ll d) {for (int i = x; i <= n; i += (i & (-i))) {c[i] += d;}}inline ll query(int x) {ll res = 0;for (int i = x; i; i -= (i & (-i))) {res += c[i];65 行未改动27 行未改动2829303132333435363738394041424344454665 行未改动27 行未改动vector<pii> vq[maxn];struct BIT {ll c[maxn];inline void init() {mems(c, 0);}inline void update(int x, ll d) {for (int i = x; i <= n; i += (i & (-i))) {c[i] += d;}}inline ll query(int x) {ll res = 0;for (int i = x; i; i -= (i & (-i))) {res += c[i];65 行未改动