多维数组------八皇后问题

/* 八皇后问题 在8*8的棋盘上摆放8个皇后,不能处于一排一列或者一斜线上,,使其不能相互攻击 */ #include <stdio.h> #include <math.h>        //使用绝对值函数asb const int N = 100;        //最多求100皇后问题 int x[N] = {-1};            //数组初始化为-1 int Place(int
相关文章
相关标签/搜索