HDU 6406 - Taotao Picks Apples(线段树查找区间内第一个大于val的位置)
#pragmaGCCoptimize(2)#includeusingnamespacestd;#defineclr(a)memset(a,0,sizeof(a))#definelinecout>1;}}tree[maxnval)returntree[x].l;elsereturn-1;}if(tree[x].l>=l&&tree[x].rmid)returnquery(x=1;i--){while