摘要: 唉。。。这题太让我伤心了,看完题之后知道是最小生成树,但是却没想到暴搜,卡了好久,最后是看别人的思路才过的,感觉自己好笨啊!!!#include"stdio.h"#include"stdlib.h"#define inf 999999int n,m,fa[105];struct node{ int x,y; int cost;}edge[1005];int cmp(const void *a,const void *b){ node *aa=(node*)a,*bb=(node*)b; return aa->cost-bb->cost;}in 阅读全文
posted @ 2012-09-13 13:32 朝圣の路 阅读(370) 评论(0) 推荐(0) 编辑