树链剖析板子(P3384 【模板】轻重链剖分)

对 应 对应 对应洛谷P3384 【模板】轻重链剖分html #include <bits/stdc++.h> using namespace std; #define GO std::ios::sync_with_stdio(false) const int maxn=4e5+10; int n,m,root,w[maxn],mod; struct edge{ int to,nxt; }d[m
相关文章
相关标签/搜索