标题 标题 标题 标题 标题 标题 #include <cstdio> #define R register int #define I inline void #define IL inline #define ls c[x][0] #define rs c[x][1] const int _ = 3e5 + 5; int n, m; struct Link_Cut_Tree { int f[_], c[_][2], v[_], s[_], st[_], r[_]; I _swap(R &a…