#include #include #include #include #include using namespace std; class node { public: int x,y; int flag; node() { flag=0; } }; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int q,n,x,y,i,j,k,f; node *a; cin>>q; for(i=0;i>n; a=new node [n]; for(j=0;j>x>>y; a[j].x=x; a[j].y=y; } for(k=0;k