Code - CodeChef: Practical coding for everyone
problem WALKFAST Problem - CodeChef
Here’s a random testcase that yours fails on:
2
3 2 3 3 2 18 51 23
120 138 967
11 1 2 8 3 17 56 81
-802 -667 -641 -639 -477 -252 349 468 680 765 945
Note that your solution should be printing two values 
1 Like