~~路径压缩啊~~
by 两年打铁 @ 2019-03-03 21:20:59
@[geray_king](/space/show?uid=170212)
```
int find_father(int x)
{
if(f[x]==x)return x;
return find_father(f[x]);
}
```
的
```
return find_father(f[x]);
```
改成
```
return f[x]=find_father(f[x]);
```
by WA鸭鸭 @ 2019-03-03 21:21:29
@[WA鸭鸭](/space/show?uid=93249) A过了,感谢
by geray_king @ 2019-03-03 21:24:19
@[geray_king](/space/show?uid=170212) 不用谢qwq
by WA鸭鸭 @ 2019-03-03 21:26:47
@[geray_king](/space/show?uid=170212) 改成按秩合并
by Le_temps_des_fleurs @ 2019-03-03 21:33:24
@[Neptune_Disaster](/space/show?uid=108185) orz N_D AK IOI
by NaCly_Fish @ 2019-03-03 21:36:05
@[NaCly_Fish](/space/show?uid=115864) Orz N_F AK IOI
N_D can't AK IOI, she is juruo.
by Le_temps_des_fleurs @ 2019-03-03 21:37:27
@[NaCly_Fish](/space/show?uid=115864) @[Neptune_Disaster](/space/show?uid=108185) 您们又在AKIOI了Orz
by 花里心爱 @ 2019-03-03 21:38:00
@[Irressey](/space/show?uid=79017) @[NaCly_Fish](/space/show?uid=115864)
您们又在AKIOI了Orz
by Le_temps_des_fleurs @ 2019-03-03 21:38:46
@[Neptune_Disaster](/space/show?uid=108185) ??神仙对话?蒟蒻看不懂
by geray_king @ 2019-03-03 21:51:43