摘要:
点击查看代码 #include<iostream> #include<cstring> #include<queue> using namespace std; const int N = 1e5 + 10; int n, m; int h[N], e[N], ne[N], idx; int d[N 阅读全文
posted @ 2022-05-05 23:37
wKingYu
阅读(47)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<iostream> #include<cstring> using namespace std; const int N = 1e5 + 10, M = 2 * N; int n, ans = N; int h[N], e[M], ne[M], idx; bool s 阅读全文
posted @ 2022-05-05 22:57
wKingYu
阅读(57)
评论(0)
推荐(1)
摘要:
点击查看代码 #include<iostream> #include<queue> #include<unordered_map> using namespace std; int bfs(string start) { string end = "12345678x"; queue<string> 阅读全文
posted @ 2022-05-05 15:06
wKingYu
阅读(42)
评论(0)
推荐(1)
摘要:
BFS 使用STL中的queue 点击查看代码 #include<iostream> #include<cstring> #include<queue> using namespace std; typedef pair<int, int> PII; const int N = 100 + 10; 阅读全文
posted @ 2022-05-05 00:19
wKingYu
阅读(72)
评论(0)
推荐(1)

浙公网安备 33010602011771号