Why am I getting wrong answer?It runs perfectly in my computer.Is there any test case am I missing?

My Solution

The lead game?

See the table carefully. The lead in a round is (cumulative lead till now +LEad in that round).

Meaning if in round 1 A led by 55 and in round 2 , B led by 60. Then overall lead of B is 5 and not 60. This is the most common error done on this Q. Did you also do the same?

the temp variable will change at every step, u are missing there bro .

//