POJ2528 Mayor's posters【线段树+lazy标志+离散化+hash+折半查找】
void PushDown(int rt)/lazy标志位下传 { if(col[rt]!1){ col[rt]=col[rt|1]=col[rt];col[rt]=-1;} } void update(int L,int R,int C,int l,int r,int rt){ int m=(l+r)>>1;if(L){ col[rt]=C;return;} PushDown(rt);if(L)update(L,R,C,lson...