WA in WALKFAST

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

1 Like

Thnku :innocent:
Accepted Code - CodeChef: Practical coding for everyone

1 Like