Jungle Roads
摘要:
poj1251:http://poj.org/problem?id=1251题意:求n个村庄之间的最小生成树。题解:建好图,然后之间kruska直接解题。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int n,num,k,cnt,sum,tt,next1; 7 char s1,s2; 8 int pa[28]; 9 struct Node{10 int u;11 int v;12 int w;13 bool operator=0;s=pa[s]);24 whi... 阅读全文
posted @ 2013-10-15 21:48 天依蓝 阅读(174) 评论(0) 推荐(0) 编辑