摘要: prim:给出一个无向图,求出最小生成树,如果该图不连通,则输出impossible。 #include<bits/stdc++.h>using namespace std;const int maxm = 200005;const int inf = 0x3f3f3f3f;struct edge{ 阅读全文
posted @ 2019-10-01 13:27 ATKevin 阅读(181) 评论(0) 推荐(0) 编辑