좌표 정렬하기2

· 백준
코드 #include using namespace std; int n,x,y; vector v; bool cmp(pair a, pair b) { if(a.second == b.second) return a.first > n; for(int i = 0; i > x >> y; v.push_back({x,y}); } sort(v.begin(), v.end(), cmp); for(pair it : v) { cout