LeeBlog

导航

2011年2月27日 #

hdu 1875 畅通工程再续

摘要: 这是我第二次敲这个题,没想到果断悲剧了,最后只能翻出以前的代码,没想到是qsort出问题了,以后qsort全部用问号表达式,不再用a-b了.#include<stdio.h>#include<math.h>#include<stdlib.h>int set[105],t,c,m;double sum = 0;struct e{ int x,y; double v;}val[10000];struct coor{ int x,y;}co[105];int cmp( const void *a,const void *b ){ return ((e *)a) - 阅读全文

posted @ 2011-02-27 19:45 LeeBlog 阅读(362) 评论(0) 推荐(0) 编辑