求大佬看一下G,想死了已经 #include<bits/stdc++.h> #define endl '\n' using ll = long long; using namespace std; int n, p; struct book { ll val, lz; }; const int N = 5e5 + 10; vector<ll> a(N), tree_sum(4 * N), sums(N, 0); vector<book> tree_ans(4 * N); void built_sum(int l, int r, int q)//建前缀和树 {...