import java.io.*; import java.util.*; public class Solution { static class P{ int x, y; public P(int a, int b){ x=a; y=b; } } public static void main(String[] args) { Scanner in = new Scanner(System.in); int t = in.nextInt(); while(t-->0){ int n = in.nextInt(); P[] ps = new P[n]; int minX=10000000; int minY=10000000; int maxX=-1000000; int maxY=-10000000; for(int i=0; i