I'm not able to make out why my code below fails. Any help would be most
welcome
#include
#include
#include
#include
#include
using namespace std;
int main(){
int T;
cin>>T;
for(int tc = 1;tc<=T;tc++){
int N;
cin >> N;
vector,int > > vData;
pair
I am getting WA but the code is working fine for sample test cases. Below
is my code can some hep - what is wrong with my code ?
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.