Hey, I am getting wrong answer to WALKFAST problem. I tried to figure out which test case is failing but to no avail. Please help me out
Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile!
Thanks! I am new to CodeChef. I just pasted the solution link instead.
Thanks Your solution gives the wrong answer for the following test input:
1 8 1 8 1 4 92 70 45 -70 -56 -49 -7 -1 2 19 45
(the answer should be
Thanks! It seems I was returning time instead of time1. I corrected it and your test case works now. Still, the submission is showing wrong
Any help is appreciated. TIA
Whats even more interesting is that some guy copied my code (including the variable names) and submitted . He got it correct.
Here’s his code : https://www.codechef.com/viewsolution/31874936
There’s one obvious bug remaining now, and it’s an easy one - just compare your solution with @everule1’s (they are not identical copies of each other) and you’ll see what it is