luoguP3690 【模板】Link Cut Tree (動態樹)

不知道爲何REnode #include<bits/stdc++.h> #define MAXN 1000005 typedef long long ll; using namespace std; ll n,m,tot,q[MAXN * 2]; struct node{ ll ch[2],f,res,val,sum; }t[MAXN]; ll pp(ll rt){swap(t[rt].
相關文章
相關標籤/搜索