摘要:
题意:就是说有A、B两个公司要修路,有m条路,可能是属于A修的,也可能是属于B修的,现在要求所有路都联通的情况下的最小权值,并且A公司必须要修k条路。同:代码:#include#include#include#includeusing namespace std;struct node{ int v1,v2; int w;} s[100005],t[100005];int n,m,k,cnts,cntt;int father[100005],sum;int cmp(const node a,const node b){ if(a.w=k) return 1; els... 阅读全文
posted @ 2014-03-04 22:39
紫忆
阅读(1319)
评论(1)
推荐(0)

浙公网安备 33010602011771号