并查集模板

const int MAXN=1005; int father[MAXN]; int find(int x)//寻找根结点 { if(x==father[x])return x; return father[x]=find(father[x]); //压缩路径 } void merge

 

利用solo搭建个人博客

![](https://oss.rainsheep.cn/blog/100-1640662641-8b4.jpeg) 参考链接: [Solo 用户指南](https://ld246.com/article/1492881378588) [从零开始安装 solo 博客](https://hacpai