[https://www.luogu.org/record/22952852](https://www.luogu.org/record/22952852) ##### 你可以对比一下我的代码 ##### 我用的是kruskal by OneFan @ 2019-08-18 11:47:29