[gcj] Parenting Partnering WA, please help

2020-04-06 Thread Aditya Vikram Jain
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

[gcj] Parenting Partnering - WA

2020-04-06 Thread Gopala Krishna Viroti
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.