Hey, I was trying the TLG question and I’m getting the WA response. I’m not sure where I’m going wrong. Please help.
Here is my code:
https://www.codechef.com/viewsolution/18955214
Thanks a bunch
Hey, I was trying the TLG question and I’m getting the WA response. I’m not sure where I’m going wrong. Please help.
Here is my code:
https://www.codechef.com/viewsolution/18955214
Thanks a bunch
The winner is determined on the basis of the maximum cumulative lead, i.e., for a particular round, you have to compare the cumulative score of a player (the sum of the scores in all the rounds up till the current round) with that of the other to determine the lead at the end of that round.
I modified your code and got it accepted, have a look: https://www.codechef.com/viewsolution/18971420.
Thanks a lot.