Dish Owner (DISHOWN) WA help

help
bug
dishown
problem
wa

#1

The link for the problem is : http://www.codechef.com/problems/DISHOWN

My code is: http://www.codechef.com/viewsolution/6824349