摘要: 1.树上倍增 #include <queue> #include <cstdio> using namespace std; const int MAXN = 1e5 + 5; const int MAXTEP = 45; int n, m; int depth[MAXN], f[MAXN][MAX 阅读全文
posted @ 2020-12-04 12:40 C2022lihan 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.树上倍增 #include #include using namespace std;const int MAXN = 1e5 ... 阅读全文
posted @ 2020-12-04 12:40 C2022lihan 阅读(43) 评论(0) 推荐(0) 编辑