@[0cebeb](/user/211432) ```cpp struct stu{ int x,y;//x个数,y位置 }; bool cmp(stu a,stu b){ return a.x<b.x; } sort(a,a+n,cmp) while(l<r){ …… } ``` by 230syh @ 2022-10-07 21:44:59