思路: 一道经典的二维偏序 c o d e code code #include<iostream> #include<cstdio> #include<algorithm> using namespace std; int n, c[1010000], ans[1010000]; struct node { int x, y; }a[1010000