正文
增加 4 行删除 4 行
12345678910111213141516173 行未改动212223242526272829116 行未改动全部展开14614714814915015115215315441 行未改动### 快读快写(非fread)```cppinline int read(){int x = 0, t = 1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')t=-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}return x*t;}3 行未改动if(x<0){putchar('-');x=-x;}if(x>9)write(x/10);putchar(x%10+'0');}116 行未改动全部展开int r = min(n, l + blk - 1);++bn, st[bn] = l, ed[bn] = r;fill(bel + l, bel + r + 1, bn);}b1.init(), b2.init();}void update(int p, long long v) {b1.update(p, v), b2.update(p, p * v);41 行未改动12345678910111213141516173 行未改动212223242526272829116 行未改动全部展开14614714814915015115215315441 行未改动### 快读快写(非fread)```cppinline int read(){int x = 0, t = 1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')t=-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}return x*t;}3 行未改动if(x<0){putchar('-');x=-x;}if(x>9)write(x/10);putchar(x%10+'0');}116 行未改动全部展开int r = min(n, l + blk - 1);++bn, st[bn] = l, ed[bn] = r;fill(bel + l, bel + r + 1, bn);}b1.init(), b2.init();}void update(int p, long long v) {b1.update(p, v), b2.update(p, p * v);41 行未改动