并查集
例题
https://github.com/GZhonghui/PlayGround/blob/master/AtCoder/typical90/012_Red_Painting.cpp
https://github.com/GZhonghui/Algorithms/blob/master/Disjoint%20Set/disjoint_set.cpp