WA in TADELIV

Hi,
Can anyone tell me why i got WA in only 2 test cases of the problem TADELIVE Problem - CodeChef ??

Here is my solution CodeChef: Practical coding for everyone

Thanks