线段树区间合并问题 恶心... 屠龙宝刀点击就送 #include <cstdio> #define N 200005 struct Segment { int l,r,mid,sum,lm,rm,m,len,flag; Segment * ch[]; Segment () { ch[]=ch[]=NULL; lm=rm=m=; flag=-; } }*root=new Segment; int n,m,tmp,ans,nowl; inline int max(int a,int b) {re…