poj 2388
来源:互联网 发布:淘宝仓库管理流程 编辑:程序博客网 时间:2024/05/21 21:01
排序并找出中间的数字:
代码如下:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>int T;int arr[10010];int cmp(void const *a,void const *b){int *pa=(int *)a;int *pb=(int *)b;return *pa-*pb;}int main(){int i;scanf("%d",&T);for(i=0;i<T;i++)scanf("%d",&arr[i]);qsort(arr,T,sizeof(int),cmp);printf("%d\n",arr[T/2]);return 0;}
- poj 2388
- POJ 2388
- POJ-2388
- poj 2388
- poj.2388
- poj-2388
- poj 2388
- poj 2388
- POJ 2388
- POJ 2388
- poj 2388
- POJ 2388 水题
- POJ 2388(中位数)
- POJ 2388(nth_element)
- poj 2388中位数
- POJ 2388 解题报告
- POJ 2388(快速排序)
- poj 2388 insert sorting
- Gmail邮箱管理
- CSS中的一些重要术语
- SQLServer2008数据引擎连接问题
- JavaScript实现页面跳转的几种方式
- 目前最经典的关于虚函数的解释整理
- poj 2388
- 阿里旺旺Linux版
- smarty中删除缓存的方法
- 预言成真:Facebook拿浏览器开刀 推进移动化进程
- 生产tornado所需的cookie_secret的方法
- uboot启动参数设置分类及方法
- 去掉FriendlyARM
- 将一个int数值转化成字符串 - itoa(...) - strlen(...)
- windows核心编程,结构化异常部分,理解摘要