#include #include #include #include #include using namespace std; #define INF 1000000 int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int q; cin>>q; while(q--){ int n; cin>>n; vector > arr(n); for(int i=0; i>arr[i].first>>arr[i].second;} int mx_x=-INF, mx_y=-INF, mn_x=INF, mn_y=INF; for(int i=0; imx_x)mx_x=arr[i].first; if(arr[i].firstmx_y)mx_y=arr[i].second; if(arr[i].second