F题解 | Witcher Genshin Impact 既然大家都是线段树我就来个分块吧 #include <bits/stdc++.h> using LL = long long; using PII = std::pair<LL, LL>; const int N = 1e5 + 10; const int M = 330; const int MOD = 1145141; LL n, m, total, length, v[N], belong[N], sum[M], l[M], r[M], rnum[M]; void build() { length = sq...