樹鏈剖析板子(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
相關文章
相關標籤/搜索