#include using namespace std; int main() { int q; cin>>q; int i; for(i=0;i>n; int a[10][2]; int j; for(j=0;j>a[j][0]>>a[j][1]; } for(j=1;j