#include #include #include #include #include using namespace std; struct point{ int x,y; }; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int q; cin>>q; while(q--){ int n; point A[10]; int vis[10]={0}; cin>>n; for(int i=0;i>A[i].x>>A[i].y; } int flag=1; int mini=0; int maxx=0,maxy=0; for(int i=1;iA[maxx].x)maxx=i; if(A[i].y>A[maxy].y)maxy=i; } for(int i=0;i