摘要: #include<bits/stdc++.h>using namespace std;int xx[8]={1,2,-1,-2,1,2,-1,-2};int yy[8]={2,1,2,1,-2,-1,-2,-1};bool b[10][10];int num,m,n;int search(int i 阅读全文
posted @ 2021-02-05 10:39 映波yoyo 阅读(132) 评论(0) 推荐(0)
摘要: //八皇后#include<bits/stdc++.h>using namespace std;int a[9];bool b[9],c[17],d[17];int num;int print(){ num++; for(int i=1;i<=8;i++) cout<<"("<<i<<","<<a[ 阅读全文
posted @ 2021-02-05 08:58 映波yoyo 阅读(106) 评论(0) 推荐(0)