#include<iostream>
using namespace std;
int P[1000][9];//方式i中第j行皇后的列位置为P[i][j]
int tmp[8];//当前方式中第i行皇后的列位置为tmp[i]
int n=0;//方式数初始化
bool col[8]={0},leftt[15]={0},rightt[15]=
題目網址中文網址#include&lt;iostream&gt;using namespace std;int P[1000][9];//方式i中第j行皇后的列位置为P[i][j] int tmp[8];//当前方式中第i行皇后的列位置为tmp[i] int n=0;//方式数初始化 bool col[8]={0},leftt[15]={0},rightt[15]={0};//所有列和左...