当前位置:网站首页>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)];
}边栏推荐
- 论文学习——鄱阳湖星子站水位时间序列相似度研究
- TreeMap
- Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
- 項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
- 项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
- The concept of C language pointer
- Le Seigneur des anneaux: l'anneau du pouvoir
- Operation and maintenance technical support personnel have hardware maintenance experience in Hong Kong
- Chapter VI - Containers
- Rabbit MQ message sending of vertx
猜你喜欢

Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition

Application of pigeon nest principle in Lucene minshouldmatchsumscorer

【MySQL 14】使用DBeaver工具远程备份及恢复MySQL数据库(Linux 环境)

IPv4 address

截图工具Snipaste

Lucene skip table

技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务

技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估

Spa single page application

Technical dry goods Shengsi mindspire lite1.5 feature release, bringing a new end-to-end AI experience
随机推荐
Map interface and method
The concept of C language pointer
2. E-commerce tool cefsharp autojs MySQL Alibaba cloud react C RPA automated script, open source log
为什么说数据服务化是下一代数据中台的方向?
Use of file class
[Development Notes] cloud app control on device based on smart cloud 4G adapter gc211
VMWare网络模式-桥接,Host-Only,NAT网络
【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
Inverted chain disk storage in Lucene (pfordelta)
Sent by mqtt client server of vertx
pgAdmin 4 v6.11 发布,PostgreSQL 开源图形化管理工具
List exercises after class
Arduino Serial系列函数 有关print read 的总结
Homology policy / cross domain and cross domain solutions /web security attacks CSRF and XSS
带你全流程,全方位的了解属于测试的软件事故
Vertx metric Prometheus monitoring indicators
Collector in ES (percentile / base)
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
Some basic operations of reflection
The difference between typescript let and VaR
https://github.com/ZouJiu1/PAT