版本比较
P16702 [MCO 2026] 雨水收集 题解
正文
增加 4 行删除 3 行
41 行未改动42434445464647484849495051525354134 行未改动全部展开41 行未改动#define pll pair<ll,ll>#define mkp make_pair#define fi first#define se secondconst ll MAXN=3e5+35;const ll MAXN=5e6+56;struct sgtree{ int l,r; ll l,r,sum,maxx,pms,sms,tag; sgtree(const ll &A=0,const ll &B=0,const ll &C=0,const ll &D=0,const ll &E=0,const ll &F=-4e18,const ll &G=0):l(A),r(B),sum(C),maxx(D),pms(E),sms(F),tag(G){} ll sum,maxx,pms,sms,tag; sgtree(const int &A=0,const int &B=0,const ll &C=0,const ll &D=0,const ll &E=0,const ll &F=-4e18,const ll &G=0):l(A),r(B),sum(C),maxx(D),pms(E),sms(F),tag(G){}};ll n,q,op,l,r,x;ll a[MAXN];sgtree sgt[MAXN<<2];134 行未改动全部展开