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]
255 - Correct Move
Moderator: Board moderators
-
- Experienced poster
- Posts: 148
- Joined: Sun Jul 13, 2014 4:32 am
- Location: Rangpur, Bangladesh
Re: 255 - Correct Move
Last edited by Shahidul.CSE on Tue Sep 16, 2014 9:02 pm, edited 1 time in total.
Md. Shahidul Islam
Dept. of CSE at Begum Rokeya University, Rangpur, Bangladesh
UVa id: http://uhunt.felix-halim.net/id/438420
My facebook account,
Email me: shahidul.cse.brur@gmail.com
Dept. of CSE at Begum Rokeya University, Rangpur, Bangladesh
UVa id: http://uhunt.felix-halim.net/id/438420
My facebook account,
Email me: shahidul.cse.brur@gmail.com
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 255 - Correct Move
Input:AC output:
Code: Select all
13 1 50
38 37 49
Code: Select all
Illegal move
Illegal move
Check input and AC output for thousands of problems on uDebug!
-
- Experienced poster
- Posts: 148
- Joined: Sun Jul 13, 2014 4:32 am
- Location: Rangpur, Bangladesh
Re: 255 - Correct Move
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 !!![:)](./images/smilies/icon_smile.gif)
Now got accepted!
I made a little mistake for legal moves loop, I used i<=l instead of i<l .
What a stupid mistake !!
![:)](./images/smilies/icon_smile.gif)
Md. Shahidul Islam
Dept. of CSE at Begum Rokeya University, Rangpur, Bangladesh
UVa id: http://uhunt.felix-halim.net/id/438420
My facebook account,
Email me: shahidul.cse.brur@gmail.com
Dept. of CSE at Begum Rokeya University, Rangpur, Bangladesh
UVa id: http://uhunt.felix-halim.net/id/438420
My facebook account,
Email me: shahidul.cse.brur@gmail.com