Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n , m , k;
- vector<int> v;
- cin >> n;
- while(n--){
- cin >> k;
- v.push_back(k);
- }
- cin >> m;
- while(m--){
- cin >> k;
- v.push_back(k);
- }
- sort(v.begin() , v.end());
- for(int i : v)
- cout << i << " ";
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement