摘要: DFS #include<iostream> #include<algorithm> using namespace std; const int MAX_N=10; int n,k; int k_; char cb[MAX_N][MAX_N]; bool has[MAX_N]; int ans; 阅读全文
posted @ 2021-03-15 10:36 JhengWei 阅读(27) 评论(0) 推荐(0) 编辑
摘要: BFS(1) BFS(2):queue中状态结构体类型不止不止当前val BFS(3):多源BFS BFS(1) 2251 #include"stdio.h" #include"limits.h" #include"string.h" #include<queue> using namespace 阅读全文
posted @ 2021-03-15 10:31 JhengWei 阅读(52) 评论(0) 推荐(0) 编辑