TLG getting wrong answer!!!

http://www.codechef.com/viewsolution/3913938

above is my code for TLG problem http://www.codechef.com/problems/TLG . Plz someone tell me why answer is wrong. it becomes correct if i add score of player with score of previous round. no such thing is mentioned in question. So why it is ? some help plz!!

//