摘要:
Problem DescriptionN个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a typedef struct{ int l,r; int count;//记录这段线段的数目}point;point tree[300001];int ans;void build(int v,int l,int r)//建树{ tree[v].l=l; tree[v].r=r; tree[v].count=0; if(l==r) return ; int mid=(l+r)/2; build(2*v,l,mid); ... 阅读全文