当前位置:网站首页>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)];
}边栏推荐
- Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore
- Lucene merge document order
- Leetcode 198: house raiding
- c语言指针的概念
- 论文学习——鄱阳湖星子站水位时间序列相似度研究
- Comparison of advantages and disadvantages between most complete SQL and NoSQL
- II. D3.js draw a simple figure -- circle
- Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction
- Spa single page application
- Common operations of JSP
猜你喜欢

Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore

Epoll related references

Leetcode 213: 打家劫舍 II

【MySQL 12】MySQL 8.0.18 重新初始化

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

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

Topic | synchronous asynchronous

Hnsw introduction and some reference articles in lucene9

最全SQL与NoSQL优缺点对比

How long is the fastest time you can develop data API? One minute is enough for me
随机推荐
New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears
SQL create temporary table
圖像識別與檢測--筆記
Why is data service the direction of the next generation data center?
Talk about floating
Chapter VI - Containers
Take you through the whole process and comprehensively understand the software accidents that belong to testing
Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model
技术干货|关于AI Architecture未来的一些思考
PgSQL converts string to double type (to_number())
The babbage industrial policy forum
Epoll related references
Operation and maintenance technical support personnel have hardware maintenance experience in Hong Kong
IndexSort
The difference between typescript let and VaR
Some experiences of Arduino soft serial port communication
The embodiment of generics in inheritance and wildcards
Vertx metric Prometheus monitoring indicators
Web router of vertx
Beginners use Minio
https://github.com/ZouJiu1/PAT