CHEFRUN-BASIC

I am trying this logic but its not accepting . i dont know what is wrong with this code.
code of problem:https://www.codechef.com/problems/CHEFRUN
my solution:https://www.codechef.com/viewsolution/26051858

First, you aren’t printing the output in the correct format, you should capitalize the first letter of your output. Second, you should take distances in their absolute value-
Here is your code getting accepted after the modifications-
https://www.codechef.com/viewsolution/26053318

1 Like

Thanks a lot.It accepted