当前位置:网站首页>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)];
}
边栏推荐
- JS monitors empty objects and empty references
- Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
- HCIA notes
- Use of generics
- Grpc message sending of vertx
- 技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
- [Development Notes] cloud app control on device based on smart cloud 4G adapter gc211
- 【MySQL 14】使用DBeaver工具远程备份及恢复MySQL数据库(Linux 环境)
- Inverted chain disk storage in Lucene (pfordelta)
- Hnsw introduction and some reference articles in lucene9
猜你喜欢
Es writing fragment process
Arduino Serial系列函数 有关print read 的总结
Epoll related references
Introduction of buffer flow
带你全流程,全方位的了解属于测试的软件事故
技术干货 | AlphaFold/ RoseTTAFold开源复现(2)—AlphaFold流程分析和训练构建
你开发数据API最快多长时间?我1分钟就足够了
Use of generics
Application of pigeon nest principle in Lucene minshouldmatchsumscorer
技术干货|AI框架动静态图统一的思考
随机推荐
TreeMap
An overview of IfM Engage
Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition
【MySQL 12】MySQL 8.0.18 重新初始化
[Development Notes] cloud app control on device based on smart cloud 4G adapter gc211
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
[set theory] Stirling subset number (Stirling subset number concept | ball model | Stirling subset number recurrence formula | binary relationship refinement relationship of division)
sharepoint 2007 versions
Sent by mqtt client server of vertx
The difference between typescript let and VaR
Qtip2 solves the problem of too many texts
TypeScript let与var的区别
JUnit unit test of vertx
Technical dry goods | reproduce iccv2021 best paper swing transformer with Shengsi mindspire
New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears
2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
Chapter VI - Containers
Beginners use Minio