摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1173求出x,y的中位数,即为答案,代码中运用快排View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 double x[1000000],y[1000000]; 4 int cmp(const void*a,const void*b) 5 { 6 return *(double *)a>*(double *)b?1:-1; 7 }//快排 8 int main() 9 {10 int n,i;11 while(scanf(&q 阅读全文
posted @ 2013-03-19 19:50
执着追求的IT小小鸟
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号