线段树
摘要:
// SegmentTreestruct SegNode{ int lst,rst; int sum,val; int lazy;};SegNode node[maxn];void BuiSegTree(int idx,int lst,int rst,int a[]){ node[idx].lst=lst; node[idx].rst=rst; int mid=(lst+rst)#includeusing namespace std;int in[200000]; //40000开太小,越界int lowbit(int a){ return a&-... 阅读全文