Scar头像

C++ 最小生成树模板 Kruskal算法

#设置Tag是个好习惯 最小生成树 Kruskal算法还有一个Prim算法,以后补上#include <iostream> #include <algorithm> #define debug(x) cout <<&nbs...

Scar头像

C++ 并查集模板

#设置Tag是个好习惯 #include <iostream> #include <algorithm> #define MAXN 1000 #define debug(x) (cout << #x&...