当前位置:网站首页>PAT甲级 1029 Median
PAT甲级 1029 Median
2022-07-03 07:34:00 【九是否非随机的称呼】
#include<iostream>
#include<vector>
#include<bits/stdc++.h>
using namespace std;
int main(int argc, char **argv){
int i, j, k, m, n, w;
cin>>m;
vector<int> v, v0;
for(i=0; i<m; i++){
cin>>n;
v.push_back(n);
}
cin>>m;
for(i=0; i<m; i++){
cin>>n;
v.push_back(n);
}
sort(v.begin(), v.end());
cout<<v[(int)((v.size()-1)/2)];
}
边栏推荐
- JUnit unit test of vertx
- Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
- Web router of vertx
- 《指環王:力量之戒》新劇照 力量之戒鑄造者亮相
- Lucene introduces NFA
- Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
- Collector in ES (percentile / base)
- Pgadmin 4 v6.11 release, PostgreSQL open source graphical management tool
- Docker builds MySQL: the specified path of version 5.7 cannot be mounted.
- C WinForm framework
猜你喜欢
Introduction of transformation flow
Use of generics
IO stream system and FileReader, filewriter
【MySQL 14】使用DBeaver工具远程备份及恢复MySQL数据库(Linux 环境)
你开发数据API最快多长时间?我1分钟就足够了
Le Seigneur des anneaux: l'anneau du pouvoir
Margin left: -100% understanding in the Grail layout
Leetcode 213: looting II
Reconnaissance et détection d'images - Notes
Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
随机推荐
最全SQL与NoSQL优缺点对比
你开发数据API最快多长时间?我1分钟就足够了
为什么说数据服务化是下一代数据中台的方向?
sharepoint 2007 versions
Custom generic structure
Chapter VI - Containers
Reconnaissance et détection d'images - Notes
Docker builds MySQL: the specified path of version 5.7 cannot be mounted.
The embodiment of generics in inheritance and wildcards
Industrial resilience
哪一刻你才发现青春结束了
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
TCP cumulative acknowledgement and window value update
What did the DFS phase do
VMware virtual machine installation
Responsive MySQL of vertx
图像识别与检测--笔记
技术干货|百行代码写BERT,昇思MindSpore能力大赏
项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录