当前位置:网站首页>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)];
}边栏推荐
- UA camouflage, get and post in requests carry parameters to obtain JSON format content
- Go language foundation ----- 01 ----- go language features
- Mail sending of vertx
- 【开发笔记】基于机智云4G转接板GC211的设备上云APP控制
- OSPF experiment
- PAT甲级 1032 Sharing
- experiment.........
- Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
- Hello world of vertx
- Traversal in Lucene
猜你喜欢

UA camouflage, get and post in requests carry parameters to obtain JSON format content

Leetcode 213: 打家劫舍 II

Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function

Robots protocol

圖像識別與檢測--筆記

Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake

Shengsi mindspire is upgraded again, the ultimate innovation of deep scientific computing

Es writing fragment process

Go language foundation ----- 16 ----- goroutine, GPM model

Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
随机推荐
c语言指针的概念
Structure of golang
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
Go language foundation ----- 11 ----- regular expression
[set theory] order relation (partial order relation | partial order set | example of partial order set)
Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
[mindspire paper presentation] summary of training skills in AAAI long tail problem
PAT甲级 1031 Hello World for U
What did the DFS phase do
Lucene merge document order
Es writing fragment process
哪一刻你才发现青春结束了
Go language foundation ----- 13 ----- file
VMware network mode - bridge, host only, NAT network
Lombok cooperates with @slf4j and logback to realize logging
An overview of IfM Engage
技术干货|关于AI Architecture未来的一些思考
截图工具Snipaste
圖像識別與檢測--筆記
https://github.com/ZouJiu1/PAT