板子一直过不去 map<int,int>res; struct ran{ int l, r; mutable int v; ran(int L, int R = -1, bool V = 0){ l = L;r = R;v = V; }; bool operator <(const ran &x)const{ return l < x.l; } }; #define It set<ran>::iterator set<ran>tr; int ans; It split(int pos){ It it = tr.lower_bound(ra...