多維數組------八皇后問題

/* 八皇后問題 在8*8的棋盤上擺放8個皇后,不能處於一排一列或者一斜線上,,使其不能相互攻擊 */ #include <stdio.h> #include <math.h>        //使用絕對值函數asb const int N = 100;        //最多求100皇后問題 int x[N] = {-1};            //數組初始化爲-1 int Place(int
相關文章
相關標籤/搜索