摘要:
Kruskal#include#include#include#includeusing namespace std;const int maxn=120;int fa[maxn];int n;struct node{ int s,t; double w;} edge[maxn*maxn... 阅读全文
posted @ 2015-08-13 15:12
雲碧
阅读(94)
评论(0)
推荐(0)
摘要:
并查集+最小生成树#include#include#include#includeusing namespace std;const int M=124;const int N=124*124;int fa[M];int m,n;int find(int x){ if(fa[x]!=x) fa... 阅读全文
posted @ 2015-08-13 15:09
雲碧
阅读(97)
评论(0)
推荐(0)

浙公网安备 33010602011771号