题解 | #有序序列合并#

有序序列合并

https://www.nowcoder.com/practice/a9e943b0dab142759807d0cfb6863897


#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int n, m, c, t[2006];
void ikun()
{
	cin >> n >> m;
	for (int i = 1; i <= n + m; i++) cin >> t[i];
	sort(t+1 ,t+1+n+m);
	for (int i = 1; i <= n + m; i++)  cout << t[i] << " ";
}
int main()
{
	ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	ikun();
	return 0;
}

全部评论

相关推荐

点赞 评论 收藏
分享
06-12 16:00
天津大学 Java
牛客30236098...:腾讯坏事做尽,终面挂是最破防的 上次被挂了后我连简历都不刷了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务