I have received Presentation Error.
Here's my code:
http://ideone.com/a5GpMX
I am not sure what to change in my code.
750 - 8 Queens Chess Problem
Moderator: Board moderators
-
- New poster
- Posts: 17
- Joined: Thu Jul 28, 2005 3:05 pm
- Location: Bangalore, India
Re: 750 - 8 Queens Chess Problem
My experience with Fraudster khari
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 750 - 8 Queens Chess Problem
Input:Output should be:
Code: Select all
4
1 2
6 7
7 8
8 8
Code: Select all
SOLN COLUMN
# 1 2 3 4 5 6 7 8
1 3 1 7 5 8 2 4 6
2 4 1 5 8 2 7 3 6
3 4 1 5 8 6 3 7 2
4 5 1 4 6 8 2 7 3
5 5 1 8 4 2 7 3 6
6 5 1 8 6 3 7 2 4
7 6 1 5 2 8 3 7 4
8 7 1 3 8 6 4 2 5
SOLN COLUMN
# 1 2 3 4 5 6 7 8
1 1 7 5 8 2 4 6 3
2 2 5 7 1 3 8 6 4
3 2 5 7 4 1 8 6 3
4 2 7 5 8 1 4 6 3
5 4 2 7 5 1 8 6 3
6 4 7 1 8 5 2 6 3
7 4 8 1 5 7 2 6 3
8 5 2 4 7 3 8 6 1
9 5 3 1 7 2 8 6 4
10 5 3 8 4 7 1 6 2
11 5 7 1 4 2 8 6 3
12 5 7 4 1 3 8 6 2
13 5 8 4 1 7 2 6 3
14 7 3 8 2 5 1 6 4
SOLN COLUMN
# 1 2 3 4 5 6 7 8
1 4 2 5 8 6 1 3 7
2 4 2 8 6 1 3 5 7
3 4 6 1 5 2 8 3 7
4 5 2 4 6 8 3 1 7
5 5 3 1 6 8 2 4 7
6 5 8 4 1 3 6 2 7
7 6 3 1 8 5 2 4 7
8 6 3 5 8 1 4 2 7
SOLN COLUMN
# 1 2 3 4 5 6 7 8
1 4 7 5 2 6 1 3 8
2 5 7 2 6 3 1 4 8
3 6 3 5 7 1 4 2 8
4 6 4 7 1 3 5 2 8
Check input and AC output for thousands of problems on uDebug!
Re: 750 - 8 Queens Chess Problem
i am continuously getting WA...here'a my code https://ideone.com/itYJGT......i have tried many sample cases and all are giving correct answers ....please help!!!