#include<bits/stdc++.h>
#define N 30005
using namespace std;
int father[N],to_root[N],size[N];
inline int getfather(int x)
{
if(father[x]==x) return x;
int ff=father[x];
father[x]=getfather(father[x]);
to_root[x]+=to_root[ff];
return father[x];
}

760

被折叠的 条评论
为什么被折叠?



