andre_joy

导航

2012年7月26日

poj 1258

摘要: 地址:http://poj.org/problem?id=1258题意:把所有农场连起来的最小费用。mark:最简单的最小生成树。第一次写,代码比较乱~代码:#include <stdio.h>#include <string.h>const int N = 110;const int MAX = 100010;int vis[N],dis[N];int a[N][N];int min(int a, int b) {return a < b ? a : b;}int main(){ int n,ans,min1,f,sum; int i,j,k; while(~s 阅读全文

posted @ 2012-07-26 10:55 andre_joy 阅读(101) 评论(0) 推荐(0) 编辑