Who's in the Middle poj 2388
来源:互联网 发布:淘宝卖家秀和买家秀 编辑:程序博客网 时间:2024/05/20 03:04
很简单,排个序就行了
#include <stdio.h>#include <string.h>#include <algorithm>#include<iostream>using namespace std;int a[10050];bool cmp(int a,int b){ return a<b;}int main(){ int n; cin>>n; for(int i=0; i<n; ++i) cin>>a[i]; sort(a,a+n,cmp); cout<<a[n/2]<<endl;}
阅读全文
0 0
- 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
- 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
- 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
- 检测com类中CLSID为{F9364159-6AED-4F9C-8BAF-D7C7ED6160A8}的组件时失败,错误80040154
- 设计模式——建造者模式
- 第一天开通博客
- 网络编程的认识
- Android-------Activity生命周期
- Who's in the Middle poj 2388
- 【codeforces 749B】 Parallelogram is Back
- 5-10 公路村村通
- PAT-乙级1008:数组元素右移问题
- 课后作业 课本NP-complete证明题
- C++中TCP/IP按约定报文协议接收数据完成拼包
- 常用类
- xml自动提示
- 读取配置文件properties的简单方式