文件名称:eight-queen-problem
介绍说明--下载内容均来自于网络,请自行研究使用
题目描述
8X8的国际象棋棋盘上被挖了一些洞,这些洞不能放棋子,求八皇后问题的摆放方案,输出一种方案即可
输入格式
棋盘用.表示正常格子,用#表示被挖掉的洞,一共8行8列
输出格式
输出从上到下的每一行的皇后所在列号(1-8)-Topic describes
8 by 8 chess board was dug holes, these holes can t put chess pieces, put eight queens problem, output a solution
Input format
Board. Said normal lattice, expressed with# ground was hole, a total of eight rows 8 columns
The output format
Output the top to the bottom of each line of queen s column number (1-8)
8X8的国际象棋棋盘上被挖了一些洞,这些洞不能放棋子,求八皇后问题的摆放方案,输出一种方案即可
输入格式
棋盘用.表示正常格子,用#表示被挖掉的洞,一共8行8列
输出格式
输出从上到下的每一行的皇后所在列号(1-8)-Topic describes
8 by 8 chess board was dug holes, these holes can t put chess pieces, put eight queens problem, output a solution
Input format
Board. Said normal lattice, expressed with# ground was hole, a total of eight rows 8 columns
The output format
Output the top to the bottom of each line of queen s column number (1-8)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
eight queen problem.cpp