摘要: View Code 1 #include<stdio.h>//求出最小生成树之后,再求出第n-m大的值就行了 2 #include<stdlib.h> 3 #include<math.h> 4 #include<string.h> 5 #define N 501 6 #define Maxint 9999999 7 8 double c[N][N],x[N],y[N],dist[N]; 9 int s[N], closest[N],n;10 11 int cmp(const void *a,const void *b) 12 { 13 retur 阅读全文
posted @ 2012-04-29 16:15 zhongya 阅读(196) 评论(0) 推荐(0) 编辑