Help in the problem Ada and Dishes(https://www.codechef.com/problems/ADADISH/)

I have written my code below but I don’t know why it is showing that my answer is only partially correct even though my output is correct and I have also taken care about the constraints. So here is the link to my code, please help me in correcting it: CodeChef: Practical coding for everyone