#include<iostream> #include<algorithm> using namespace std; const int N = 2e5+10; int f[N]; int main() { int t ; cin>>t; while(t--) { &n...