#include<cstring>
#include <cstdio>
#include <iostream>
#include <set>
using namespace std;
struct node {
int x,y;
node(int x=0,int y=0):x(x),y(y){}
bool operator < (const node& rhs)const{
return x < rhs.x || x==rhs.x&&y<rhs.y;
}
};
const int maxn = 15100;
multiset<node> vis;
multiset<node> ::iterator p,p2;
int n;
int main()
{
int T;
scanf("%d",&T);
int kase=1;
while(T--){
vis.clear();
int a,b;
......
阅读全文