Page 2 of 2

Re: 255 - Correct Move

Posted: Mon Sep 15, 2014 9:29 pm
by Shahidul.CSE
why getting WA? I checked all the test cases on this topic, I am getting correct output, but even judge is giving me WA, please anybody check my code to find out what is wrong.
[codeAccepted ![/code]

Re: 255 - Correct Move

Posted: Tue Sep 16, 2014 8:11 pm
by brianfry713
Input:

Code: Select all

13 1 50
38 37 49
AC output:

Code: Select all

Illegal move
Illegal move

Re: 255 - Correct Move

Posted: Tue Sep 16, 2014 8:57 pm
by Shahidul.CSE
Thank you sir,
Now got accepted!
I made a little mistake for legal moves loop, I used i<=l instead of i<l .
What a stupid mistake !! :)