sort 比较函数中右端点比较要取等
可以用 return p[x.l]==p[y.l]?(x.r>=y.r)^(p[x.l]&1):x.l<y.l;
return p[x.l]==p[y.l]?(x.r>=y.r)^(p[x.l]&1):x.l<y.l;