typedef long long ll; typedef long double ld; #include using namespace std; #define int long long signed main(){ ll t; std::cin >> t; for (int iiii = 0; iiii < t; iiii++) { ll n; std::cin >> n; vector a(2*n),b(2*n); for (int i = 0; i < 2*n; i++) { std::cin >> a[i]; a[i]--; if(i