摘要: //八皇后(数字串)#include<bits/stdc++.h>using namespace std;int a[9],k[93][8];bool b[9],c[17],d[17];int num;int zr(){ num++; for(int i=1;i<=8;i++) { k[num][i 阅读全文
posted @ 2021-02-05 17:37 映波yoyo 阅读(24) 评论(0) 推荐(0)
摘要: //LETTERS#include<bits/stdc++.h>using namespace std;int u[4]={-1,0,1,0};int v[4]={0,1,0,-1};bool b[27];char a[21][21];int r,s,max1;int search(int m,in 阅读全文
posted @ 2021-02-05 17:35 映波yoyo 阅读(40) 评论(0) 推荐(0)
摘要: #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)