【解题报告】【HDOJ1233】【最小生成树】还是畅通工程
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1233prim最小生成树 1 #include<stdio.h> 2 #include<string.h> 3 #define INF 0x3f3f3f3f 4 #define min(a,b) (a>b?b:a) 5 6 long int map[101][101]; 7 long int n,m; 8 int set[101]; 9 long int sum;10 void prim_init()11 {12 int i,a,b,c;13 memset(map,INF,siz 阅读全文
posted @ 2012-07-21 18:32 coding封神 阅读(116) 评论(0) 推荐(0) 编辑