related to problem-Chefs Pet (HAREJUMP)

can some body please explain why my code is giving wrong answer…infact i have cross checked the answer from other from codes…but still…it seems like it has no problem…plz check it out…this is my code-http://www.codechef.com/viewsolution/1352932

//