09-09 HDU_Steps5.3 树状数组,LCA HDU1166 HDU2492 HDU3584 HDU2586 HDU2874 HDU3486 HDU2688
5.3.1HDU1166敌兵布阵裸的树状数组query[i..j]=sum(j)-sum(i-1)#include
#include
usingnamespacestd;
constintMAXN=50010;
intn,cas,x,y;
charop[6];
//树状数组操作
intc[MAXN*2];
voidinit(){memset(c,0,sizeofc);}
intlowbit(int