import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t>0) { int n=sc.nextInt(); boolean a=true; int[] x=new int[n]; int[] y=new int[n]; for(int k=0;kmaxx) maxx=x[i]; if(y[i]maxy) maxy=y[i]; } for(int i=0;i