上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 26 下一页

2012年7月21日

【解题报告】【HDOJ1102】【最小生成树】Constructing Roads

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1102prim最小生成树 1 #include<stdio.h> 2 #include<String.h> 3 #define INF 0x3f3f3f3f 4 int map[105][105]; 5 int set[105]; 6 int sum; 7 int n; 8 void prim(){ 9 int t=INF,tt,i,j;10 for(i=1;i<=n;i++){11 if(set[i])12 for(j=1;j<=n;j++... 阅读全文

posted @ 2012-07-21 18:30 coding封神 阅读(143) 评论(0) 推荐(0)

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 26 下一页

导航