#include <bits/stdc++.h> using namespace std; using LL = long long; const int N = 5e4 + 5; int n, m, cnt, totn; int lx[N], rx[N], op[N], b[N], k[N]; int rt[N << 2], addx[N * 400]; //编号为p的权值线段树,区间线段树编号为rt[p] LL sum[N * 400]; struct Tree{ int L, R; }T[N * 400]; void lazy(int p, int l, int ...