In that problem i am not passing 1 test case.
Probelm Strongest fighther
@Satyamcoder the logic is completely fine, but the number of inputs are very large and so to avoid TLE you should use faster i/o methods.
Add these 2 lines in the starting of main() function and it will pass all the test cases.
ios_base::sync_with_stdio(false);
cin.tie(NULL);