2012长春网络赛(hdu4267 hdu4268 hdu4274 hdu4276 hdu4277)
hdu4267ASimpleProblemWithIntegers题意:数列更新,每次更新区间[a,b]内a0){
res+=ss[i];
i-=lowbit(i);
}
returnres;
}
voidupdate(intleft,intright,intv){
inc(left,v);
inc(right+1,-v);
}
}
IndexTreetree[][]=newIndexTree[