文章
33
粉丝
0
获赞
149
访问
5.0k
#include<bits/stdc++.h>
using namespace std;
int main(){
list<int> lst;//可以用vector 然后sort(lst.begin(),lst.end()),模拟一下
int s1,s2;
cin>>s1;
while(s1--){
int temp;
cin>>temp;
lst.push_back(temp);
}
cin>>s2;
while(s2--){
int temp;
cin>>temp;
lst.push_back(temp);
}
lst.sort();
for(auto i:lst) cout<<i<<" ";
return 0;
}
登录后发布评论
暂无评论,来抢沙发