(STL自带的排序功能的使用7.1.2)POJ 2388 Who's in the Middle(sort()函数的使用)
来源:互联网 发布:首届人工智能计算大会 编辑:程序博客网 时间:2024/06/08 16:10
/* * POJ_2388.cpp * * Created on: 2013年10月31日 * Author: Administrator */#include <iostream>#include <algorithm>using namespace std;const int maxn = 10010;int main(){int n;int a[maxn];while(scanf("%d",&n)!=EOF){int i;for(i = 0 ; i < n ; ++i){scanf("%d",&a[i]);}sort(a,a+n);printf("%d\n",a[n/2]);}return 0;}
- (STL自带的排序功能的使用7.1.2)POJ 2388 Who's in the Middle(sort()函数的使用)
- poj 2388 Who's in the Middle【sort排序】
- POJ 2388 Who's in the Middle(排序)
- POJ 2388 Who's in the Middle(堆排序)
- POJ 2388 Who's in the Middle 排序
- Who's in the Middle 堆排序,poj 2388
- POJ 2388 Who's in the Middle(排序)
- poj 2388 Who's in the Middle 排序,大水
- Poj 2388 Who's in the Middle【排序】
- poj 2388Who's in the Middle 排序
- (使用STL自带的排序函数7.3.4)POJ 2371 Questions and answers(sort()函数的使用)
- POJ--2388 Who's in the Middle
- poj 2388 Who's in the Middle
- POJ-2388 who's in the middle
- poj-2388 Who's in the Middle
- poj 2388 Who's in the Middle
- POJ 2388 Who's in the Middle
- poj 2388 Who's in the Middle
- poj2187 Beauty Contest 凸包+旋转卡壳
- __read_mostly变量含义
- LDD3-最简字符设备驱动freg (register_chrdev)
- Makefile 的问题及解答~
- SGU536 Berland Chess
- (STL自带的排序功能的使用7.1.2)POJ 2388 Who's in the Middle(sort()函数的使用)
- MFC中对象、句柄、ID之间的区别及相互转换
- hdu 1174 爆头(点到空间直线距离)
- MFC 文档 视图 框架窗口间的关系 和消息传送规律
- 函数调用栈初探
- MySQL DBA 招聘小结
- 深入Java核心 Java内存分配原理精讲
- 怎样实现多线程
- vim基本配置