当前位置:网站首页>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)];
}边栏推荐
- Le Seigneur des anneaux: l'anneau du pouvoir
- 不出网上线CS的各种姿势
- SQL create temporary table
- New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears
- An overview of IfM Engage
- 为什么说数据服务化是下一代数据中台的方向?
- Web router of vertx
- Vertx metric Prometheus monitoring indicators
- C code production YUV420 planar format file
- Lombok cooperates with @slf4j and logback to realize logging
猜你喜欢

技术干货|AI框架动静态图统一的思考

Leetcode 198: house raiding

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

Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction

Leetcode 213: looting II

Custom generic structure

Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction

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

IPv4 address

Common methods of file class
随机推荐
Circuit, packet and message exchange
Docker builds MySQL: the specified path of version 5.7 cannot be mounted.
技术干货|AI框架动静态图统一的思考
技术干货|昇思MindSpore NLP模型迁移之Roberta ——情感分析任务
The concept of C language pointer
Read config configuration file of vertx
技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
PdfWriter. GetInstance throws system Nullreferenceexception [en] pdfwriter GetInstance throws System. NullRef
技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore
项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
Dora (discover offer request recognition) process of obtaining IP address
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
Use of file class
Web router of vertx
PgSQL converts string to double type (to_number())
截图工具Snipaste
TypeScript let与var的区别
https://github.com/ZouJiu1/PAT