文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.