二维偏序

1 struct{
2     int x,y;
3 }a
4 sort(a,cmp)
5 for(int i=1;i<=n;i++){
6     ans[i]=sum(a[i].y-1);
7     add(a[i].x);
8 }
原文地址:https://www.cnblogs.com/lcan/p/9552073.html