1753: [Usaco2005 qua]Who's in the Middle (快速排序)
来源:互联网 发布:淘宝上什么木制品好卖 编辑:程序博客网 时间:2024/06/06 16:20
#include<algorithm>#include<cstdio>int n,a[10001];int main(){scanf("%d",&n);for(int i=1;i<=n;i++)scanf("%d",&a[i]);std::sort(a+1,a+n+1);printf("%d",a[(n+1)/2]);return 0;}
0 0
- 1753: [Usaco2005 qua]Who's in the Middle (快速排序)
- bzoj1753 [Usaco2005 qua]Who's in the Middle
- bzoj1753 [Usaco2005 qua]Who's in the Middle
- HDU 1157(Who's in the Middle) 快速排序
- HDU 1157 Who's in the Middle (快速排序)
- HDU 1157 Who's in the Middle (快速排序 or 任意排序)
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- Who's in the Middle
- TI C66x DSP 系统events及其应用 - 5.7(IST)
- uva10152-ShellSort
- PHP—PDO对象操作数据库及MYSQL行锁应用于
- mybatis显示sql语句 log4j.properties配置文件
- portal参考
- 1753: [Usaco2005 qua]Who's in the Middle (快速排序)
- JS.json对象转化颂
- [LeetCode] Permutations II
- POJ 1742 Coins
- LRU Cache
- uva10561(SG函数)
- 求其带权路径长度
- poj_1703 Find them,Catch them
- Python使用PyMedia播放mp3,wave等文件拍