CODECHEF TLG(EASY)

my code : http://ideone.com/weQPko

shows WA plz help

1 Like

You made the same mistake that I made when I first did this question! :smiley:

So basically, the lead that we have to take is the difference between the cumulative scores and not the scores in that round. Read the problem statement again and you’ll get it. On the other hand, the input given is the score in 1 particular round. So you need to keep on adding scores and then subtracting them.

2 Likes

thnx a lot