摘要:
unordered_map(基于哈希表的map) 化学方程式: #include<iostream> #include<cstring> #include<algorithm> #include<unordered_map> #define x first #define y second us 阅读全文
摘要:
并查集一 当我们需要快速判断两个元素是否归属于同一个集合 或者将两个集合合并时,就会使用并查集 #include<iostream> using namespace std; const int N = 1e5+10; int p[N]; int n,m; //寻找祖宗节点,+路径压缩 int fi 阅读全文