getting wrong answer in maxcomp

pls temme y i am getting wrong answer for http://www.codechef.com/problems/MAXCOMP .My solution is http://www.codechef.com/viewsolution/4044666

my logic is correct…i am expecting a tle…but it s showing wrong answer…pls help