记录之前写的八皇后问题
// 八皇后问题递归解答
#include <iostream>
using namespace std;
int ncount = 0;
int a[8][8];
bool judge(int m, int n)//判断当前是否符合要求
{
for (int i = 0; i < 8; i++)
{
for (int j =
记录之前写的八皇后问题
// 八皇后问题递归解答
#include <iostream>
using namespace std;
int ncount = 0;
int a[8][8];
bool judge(int m, int n)//判断当前是否符合要求
{
for (int i = 0; i < 8; i++)
{
for (int j =