sort(q+1,q+1+m,[](Q x,Q y){ return pos[x.l] == pos[y.l]?x.r<y.r:pos[x.l]<pos[y.l]; });
rt,noi系列竞赛可以这么用吗qwq(我觉得显然可以吧