N皇后問題:基於局部搜索策略的高效算法

#include<iostream> #include<string.h> #include<time.h> using namespace std; #define TIMES 10 //測試輪數 #define MAX_SIZE 10000 //最大可求解的皇后數量 int n; //待輸入的皇后數量 int board[MAX_SIZE]; //記錄棋盤情況的數組 int lab
相關文章
相關標籤/搜索