BF的數據結構題單-提升組——樹鏈剖分

樹鏈剖分板子題 #include <bits/stdc++.h> using namespace std; #define ll long long #define ls 2 * rt #define rs 2 * rt + 1 #define N 100005 int n, m; vector<int> edge[N]; int id[N], nw[N], w[N], tot; int dep[
相關文章
相關標籤/搜索