并查集学习2

并查集学习2
原文地址:https://www.cnblogs.com/qinduanyinghua/p/5487483.html