摘要: | 并查集 | 路径压缩 | 这是一道典型的并查集问题,本次贴了多种计算种类数的方法,希望能够加深理解 #include<iostream> #include<algorithm> #include<string> #include<set> using namespace std; int n,m 阅读全文
posted @ 2025-11-28 12:54 channy_zheng 阅读(6) 评论(0) 推荐(0)