WA in WALKFAST

Code - https://www.codechef.com/viewsolution/29314849
problem https://www.codechef.com/problems/WALKFAST

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 :slight_smile:

1 Like

Thnku :innocent:
Accepted Code - https://www.codechef.com/viewsolution/29356784

1 Like