Dish Owner (DISHOWN) WA help

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

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