[Luogu 2023] AHOI2009 维护序列 恕我冒昧这和线段树模板二有个琴梨区别? #include <cstdio> int n,m; long long p; class SegmentTree { private: struct Node { int left,right; long long v,mul,add; Node *c[2]; Node(int l,int r):left(l),right(r),mul(1LL),add(0LL) { if(l==r) { scan…