当前位置:网站首页>Pat grade a 1029 median
Pat grade a 1029 median
2022-07-03 07:41:00 【IX. is it a non random title】
#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)];
}
边栏推荐
- Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition
- 技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
- JUnit unit test of vertx
- Hisat2 - stringtie - deseq2 pipeline for bulk RNA seq
- Unified handling and interception of exception exceptions of vertx
- Leetcode 198: house raiding
- C2-关于VCF文件合并的几种方法
- Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
- Go language foundation ------ 14 ------ gotest
- 【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
猜你喜欢
Iterm2设置
技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验
【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机
论文学习——鄱阳湖星子站水位时间序列相似度研究
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
研究显示乳腺癌细胞更容易在患者睡觉时进入血液
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
PAT甲级 1027 Colors in Mars
Go language foundation ----- 02 ----- basic data types and operators
Image recognition and detection -- Notes
随机推荐
PAT甲级 1030 Travel Plan
Vertx multi vertical shared data
PgSQL converts string to double type (to_number())
HDMI2.1与HDMI2.0的区别以及转换PD信号。
Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
圖像識別與檢測--筆記
【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机
【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
An overview of IfM Engage
Go language foundation ----- 06 ----- anonymous fields, fields with the same name
Vertx's responsive MySQL template
Mail sending of vertx
Industrial resilience
技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验
Hello world of vertx
VMware network mode - bridge, host only, NAT network
Hnsw introduction and some reference articles in lucene9
技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
Pgadmin 4 v6.11 release, PostgreSQL open source graphical management tool
Beginners use Minio