poj2388
来源:互联网 发布:卖家怎么申请淘宝介入 编辑:程序博客网 时间:2024/05/01 20:40
#include<iostream>
#include<algorithm>
using namespace std;
const int maxn=11000;
int a[maxn],n;
int main()
{
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i];
sort(a+1,a+n+1);
cout<<a[(n+1)/2]<<endl;
return 0;
}
#include<algorithm>
using namespace std;
const int maxn=11000;
int a[maxn],n;
int main()
{
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i];
sort(a+1,a+n+1);
cout<<a[(n+1)/2]<<endl;
return 0;
}
- poj2388
- POJ2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- POJ2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- poj2388
- python修饰符
- 常用JS图片滚动(无缝、平滑、上下左右滚动)代码大全
- openoffice --查找文本并设置文本字体的宏
- 删除某个具体同步链
- ACCESS中执行SQL
- poj2388
- C#使用NPOI向Excel版当中插入行
- javascript版linq,真心不错
- 《高性能网站建设指南》阅读笔记_规则7- 避免CSS表达式
- 去掉SDI的菜单栏
- MTK Android滑盖或翻盖处理驱动
- COM学习笔记(四)IDispatch接口原理与应用
- 网络优化升级与性能优化十五招
- 平衡传输和不平衡传输