搜索资源列表
n_queen
- 在n×n格的棋盘上放置彼此不受攻击的n个皇后,按照国际象棋的规则,皇后可以攻击与之处在同一行或同一列或同一斜线上的棋子,求解可以放置的方法种数。-Placed on the n × n chessboard grid attack each other n-queens, in accordance with the rules of chess, the queen can attack in the same row or column, or diagonal pieces of the
the-problem-of-8-queens
- 数据结构实现八(n)皇后问题,c源码+自定义头文件。有注释-the problem of 8 queens,language:C,has comments.
exp5-1
- 求解皇后问题:在n*n的方格棋盘上,放置n个皇后,要求每个皇后不同行、不同列、不同左右对角线。-Queens Problem Solving: n* n on the checkerboard, place n queens, queens different requirements of each row, different columns and different about the diagonal.
queen
- 在N*N的棋盘上放置N个皇后(n<=10)而彼此不受攻击(即在棋盘的任一行,任一列和任一对角线上不能放置2个皇后),编程求解所有的摆放方法。 【输入格式】 输入:n 【输出格式】 每行输出一种方案,每种方案顺序输出皇后所在的列号,各个数之间有空格隔开。若无方案,则输出no solute! 【输入样例】Queen.in 4 【输出样例】Queen.out 2 4 1 3 3 1 4 2 -Placed on the board of N* N N
queen
- 在一个国际象棋棋盘中摆N个皇后,使这N个皇后不能互相被对方吃掉,-In a chess board put N queen, make this N queen cannot be eaten by the other party to each other,
djdpalc
- 八皇后程序 回溯法寻找N规模的皇后可能分配()