题解列表

筛选

连通图 -题解(C++代码)并查集

摘要:一道简单的并查集问题,判断连通分量个数,如果连通分量个数为1,则说明全部连通 ```cpp #include #include using namespace std; int fa[1……