poj 3228
摘要:
#include<iostream>#include<fstream>using namespace std;int n,m,ans;struct e{ int s,t,w;};e edge[40001];int f[401];int cmp(const void *a,const void *b){ return (*(e*)a).w-(*(e*)b).w;}int father(int s){ if(s!=f[s]) f[s]=father(f[s]); return f[s];}int a[401];void unionset(int s,int t){ int 阅读全文
posted @ 2011-05-29 19:05 宇宙吾心 阅读(390) 评论(0) 推荐(0)
浙公网安备 33010602011771号