HDU-1272 小希的迷宫 并查集判断,只要每次连接的 p、q 之前并未相互连接即可 每组数据只能组成一个迷宫 /** * author: Akvicor * created: 2019-06-13 17-17-53 **/ #include <bits/stdc++.h> u
HDU-1213 How Many Tables 使用并查集求出一共有几个集合就可以 /** * author: Akvicor * created: 2019-06-13 16-05-22 **/ #include <bits/stdc++.h> using namespace
POJ-1611 The Suspects 并查集板子题 /** * author: Akvicor * created: 2019-06-13 15-21-28 **/ #include <cstdio> #include <cstring> #include <iomanip>