POJ 2388.Who's in the Middle
来源:互联网 发布:js 滚动加载更多 编辑:程序博客网 时间:2024/06/07 06:13
题目:http://poj.org/problem?id=2388
AC代码(C++):
#include <iostream>#include <algorithm>#include <stdio.h>#include <vector>#include <queue>#include <math.h>#include <string>using namespace std;int main(){vector<int> vec;int n;cin>>n;for(int i = 0; i < n; i++){int tmp;cin>>tmp;vec.push_back(tmp);}sort(vec.begin(),vec.end());int mid = vec.size()/2;cout<<vec.at(mid);}总结:水题
阅读全文
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
- poj 2388 Who's in the Middle
- Who's in the Middle(poj 2388)
- 奶牛博览会——双背包问题
- 原生js实现图片在固定窗口内放缩、拖拽
- gym 101512 BAPC 2014 I Interesting Integers
- [LeetCode] Algorithms-3.Longest Substring Without Repeating Characters
- mysql表相关的约束,主键外键。
- POJ 2388.Who's in the Middle
- 往eclipse项目中添加jar包
- asp.net core2.0 JWT Bearer 注意添加认证服务
- Linux ubtun 安装wireshark
- 打印X图
- Hive
- 【线筛】线性筛选素数
- ctag php 跳定义
- 看懂以太坊ABI生成