Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main()
- {
- // read strings
- string s,t;
- cin>>s>>t;
- //concatenate, sort, print
- s += t;
- sort(s.begin(),s.end());
- cout<<s<<'\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment