当前位置:网站首页>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)];
}边栏推荐
- Warehouse database fields_ Summary of SQL problems in kingbase8 migration of Jincang database
- The difference between typescript let and VaR
- Some basic operations of reflection
- The underlying mechanism of advertising on websites
- Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing
- Take you through the whole process and comprehensively understand the software accidents that belong to testing
- Jeecg data button permission settings
- 截图工具Snipaste
- 圖像識別與檢測--筆記
- FileInputStream and fileoutputstream
猜你喜欢

Common architectures of IO streams

Lucene skip table

【CoppeliaSim4.3】C#调用 remoteApi控制场景中UR5

技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验

技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务
![[coppeliasim4.3] C calls UR5 in the remoteapi control scenario](/img/ca/2f72ea3590c358a6c9884aaa1a1c33.png)
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario

Qtip2 solves the problem of too many texts

Leetcode 198: house raiding

New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears

The concept of C language pointer
随机推荐
I. D3.js hello world
Lucene introduces NFA
Some experiences of Arduino soft serial port communication
【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
Use of generics
Use of file class
截图工具Snipaste
TCP cumulative acknowledgement and window value update
Jeecg request URL signature
Chapter VI - Containers
IO stream system and FileReader, filewriter
HCIA notes
Introduction of buffer flow
Logging log configuration of vertx
论文学习——鄱阳湖星子站水位时间序列相似度研究
Docker builds MySQL: the specified path of version 5.7 cannot be mounted.
II. D3.js draw a simple figure -- circle
图像识别与检测--笔记
技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
Leetcode 213: 打家劫舍 II
https://github.com/ZouJiu1/PAT