正文
增加 1 行删除 1 行
43 行未改动44454647484950515222 行未改动43 行未改动char s[N];void modify(int *c, int x, int v) {for (; x <= n; x += x & (-x))c[x] = max(c[x], v);}int query(int *c, int x) {int s = 0;22 行未改动43 行未改动44454647484950515222 行未改动43 行未改动char s[N];void modify(int *c, int x, int v) {for (; x <= n; x += x & (-x))c[x] = max(c[x], v);}int query(int *c, int x) {int s = 0;22 行未改动