当前位置:网站首页>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)];
}边栏推荐
- GoLang之结构体
- 密西根大学张阳教授受聘中国上海交通大学客座教授(图)
- 【开发笔记】基于机智云4G转接板GC211的设备上云APP控制
- TypeScript let与var的区别
- Go language foundation ----- 11 ----- regular expression
- Go language foundation ----- 05 ----- structure
- Rabbit MQ message sending of vertx
- Epoll related references
- Leetcode 198: house raiding
- Go language foundation ----- 07 ----- method
猜你喜欢

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

URL programming

论文学习——鄱阳湖星子站水位时间序列相似度研究

技术干货|昇思MindSpore可变序列长度的动态Transformer已发布!

截图工具Snipaste

Es writing fragment process

Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake
![[Development Notes] cloud app control on device based on smart cloud 4G adapter gc211](/img/55/fea5fe315932b92993d21f861befbe.png)
[Development Notes] cloud app control on device based on smart cloud 4G adapter gc211

Leetcode 198: house raiding

技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
随机推荐
Epoll related references
s7700设备如何清除console密码
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
Responsive MySQL of vertx
昇思MindSpore再升级,深度科学计算的极致创新
Lombok cooperates with @slf4j and logback to realize logging
Logging log configuration of vertx
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
华为交换机基础配置(telnet/ssh登录)
Technical dry goods Shengsi mindspire lite1.5 feature release, bringing a new end-to-end AI experience
Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
OSPF protocol summary
Leetcode 213: looting II
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
What did the DFS phase do
Unity XR实现交互(抓取,移动旋转,传送,射击)-Pico
Beginners use Minio
HDMI2.1与HDMI2.0的区别以及转换PD信号。
Introduction of transformation flow
项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
https://github.com/ZouJiu1/PAT