当前位置:网站首页>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)];
}边栏推荐
- Mail sending of vertx
- GStreamer ffmpeg avdec decoded data flow analysis
- The concept of C language pointer
- TCP cumulative acknowledgement and window value update
- 哪一刻你才发现青春结束了
- 【MySQL 12】MySQL 8.0.18 重新初始化
- Homology policy / cross domain and cross domain solutions /web security attacks CSRF and XSS
- sharepoint 2007 versions
- Wireshark software usage
- Realize the reuse of components with different routing parameters and monitor the changes of routing parameters
猜你喜欢

《指环王:力量之戒》新剧照 力量之戒铸造者亮相

Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!

最全SQL与NoSQL优缺点对比

Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition

不出网上线CS的各种姿势

项目经验分享:基于昇思MindSpore实现手写汉字识别

c语言指针的概念

Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction

TreeMap

項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
随机推荐
《指环王:力量之戒》新剧照 力量之戒铸造者亮相
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
Hnsw introduction and some reference articles in lucene9
Segment read
项目经验分享:基于昇思MindSpore实现手写汉字识别
Read config configuration file of vertx
The concept of C language pointer
Qtip2 solves the problem of too many texts
Some basic operations of reflection
How long is the fastest time you can develop data API? One minute is enough for me
Vertx's responsive MySQL template
Inverted chain disk storage in Lucene (pfordelta)
c语言指针的概念
不出网上线CS的各种姿势
II. D3.js draw a simple figure -- circle
【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
1. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
FileInputStream and fileoutputstream
Industrial resilience
An overview of IfM Engage
https://github.com/ZouJiu1/PAT