多学习。

摘要: AcWing847.图中点的层次 题解 #include <iostream> #include <cstring> #include <queue> #include <cstdio> using namespace std; const int N = 1e5 + 10; int n, m; q 阅读全文
posted @ 2022-05-23 22:47 czyaaa 阅读(42) 评论(0) 推荐(0)
摘要: AcWing846.树的重心 题解 树的深度优先遍历:可以算出各子树的结点数 #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int N = 1e5 + 10; int ans = 阅读全文
posted @ 2022-05-23 22:11 czyaaa 阅读(43) 评论(0) 推荐(0)
摘要: AcWing844.走迷宫 题解 stl #include <iostream> #include <cstring> #include <queue> using namespace std; typedef pair<int,int> PII; const int N = 110; queue< 阅读全文
posted @ 2022-05-23 15:50 czyaaa 阅读(34) 评论(0) 推荐(0)