文件名称:N-queen-problem
介绍说明--下载内容均来自于网络,请自行研究使用
在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。
你的任务是,对于给定的N,求出有多少种合法的放置方法。
-In N* N checkerboard of placed N a queen, so they don t attack each other (that is, any two queen not allowed in the same row, the same listed, and not allowed to board a border in 45 Angle on the diagonal lines.
Your task is for a given N, find out how many kinds of legal placed method.
你的任务是,对于给定的N,求出有多少种合法的放置方法。
-In N* N checkerboard of placed N a queen, so they don t attack each other (that is, any two queen not allowed in the same row, the same listed, and not allowed to board a border in 45 Angle on the diagonal lines.
Your task is for a given N, find out how many kinds of legal placed method.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
N queen problem.CPP