摘要: 并查集 #include <cstdio> #include <vector> using namespace std; /** * Disjoint Set Union */ class DSU { vector<int> s; int cnt; public: DSU(int n) { cnt 阅读全文
posted @ 2021-02-28 21:28 Zewbie 阅读(39) 评论(0) 推荐(0)