getting wrong answer in maxcomp

pls temme y i am getting wrong answer for MAXCOMP Problem - CodeChef .My solution is CodeChef: Practical coding for everyone

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