Incorrect Answer

This is my 10th submission for the problem https://www.codechef.com/problems/TLG and I do not know what exactly is wrong with my code. Please let me know my mistake. https://www.codechef.com/viewsolution/19301904

You have to find the lead at each round after summing all the points from previous round.
That’s what you have done wrong.
Example :

2

34 22

21 19

Output will be :
1 14