02 2021 档案
2.5基本算法之搜索 156:LETTERS
摘要:#include<iostream>#include<cstdio>using namespace std;char a[21][21];bool b[26]; int X[4]={0,1,0,-1}, Y[4]={1,0,-1,0}; int m=0;int R,C; void DFS(int r 阅读全文
posted @ 2021-02-05 17:07 独眼 阅读(106) 评论(0) 推荐(0)
c++搜索
摘要:NOI 2.5基本算法之搜索 1700:八皇后问题 编程样例#include<cstdio> #include<iostream> #include<cstdlib> #include<iomanip> using namespace std; bool d[16]={0},b[9]={0},c[1 阅读全文
posted @ 2021-02-05 16:44 独眼 阅读(283) 评论(0) 推荐(0)