#include <iostream> #include <set> using namespace std; int main(){ string str; cin>>str; multiset<char> res; for(auto &ch: str){ res.insert(ch); } for(auto &ch: res){ cout<<ch; } cout<<endl; return 0; }
#include <iostream> #include <set> using namespace std; int main(){ string str; cin>>str; multiset<char> res; for(auto &ch: str){ res.insert(ch); } for(auto &ch: res){ cout<<ch; } cout<<endl; return 0; }