摘要: LCA 倍增 #include <bits/stdc++.h> using namespace std; const int N = 1e3 + 10; int T; int n, m; int h[N], e[N * 2], ne[N * 2]; // f 为倍增函数,存储每个节点i,取j次父节点 阅读全文
posted @ 2022-07-22 14:52 superPG 阅读(20) 评论(0) 推荐(0) 编辑