B. 八皇后问题

    Type: Default 1000ms 256MiB

八皇后问题

No testdata at current.

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

###【题目描述】

在国际象棋棋盘上放置八个皇后,要求每两个皇后之间不能直接吃掉对方。

###【输入格式】

(无)

###【输出格式】

按给定顺序和格式输出所有八皇后问题的解(见样例)。

###【输入样例】 (无) ###【输出样例】

No. 1
1 0 0 0 0 0 0 0 
0 0 0 0 0 0 1 0 
0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 1 
0 1 0 0 0 0 0 0 
0 0 0 1 0 0 0 0 
0 0 0 0 0 1 0 0 
0 0 1 0 0 0 0 0 
No. 2
1 0 0 0 0 0 0 0 
0 0 0 0 0 0 1 0 
0 0 0 1 0 0 0 0 
0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 1 
0 1 0 0 0 0 0 0 
0 0 0 0 1 0 0 0 
0 0 1 0 0 0 0 0 
...以下省略

9.22集训班作业

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2023-9-21 18:00
End at
2023-9-28 16:40
Duration
166.7 hour(s)
Host
Partic.
1