#include<bits/stdc++.h> using namespace std; using ll=long long; const int N=2e5+10; pair<ll,ll> A[N]; int main(){ int T; cin>>T; while(T--){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>A[i].first>>A[i].second; ...