Help me in solving VCOUPLE problem

My issue

My code

#include <iostream>
#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define ff first
#define ss second 
// #define int long long
using namespace std;

signed main() {
	int t;
	std::cin >> t;
	while(t--){
	// your code goes here
	    
	
	}
	return 0;
}

Problem Link: VCOUPLE Problem - CodeChef