matbensch

NAQ22 C Solution (C++)

Feb 4th, 2023
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     // read strings
  10.     string s,t;
  11.     cin>>s>>t;
  12.     //concatenate, sort, print
  13.     s += t;
  14.     sort(s.begin(),s.end());
  15.     cout<<s<<'\n';
  16. }
Advertisement
Add Comment
Please, Sign In to add comment