• Source
    1. #include <iostream>
    2. #include <algorithm>
    3. #include <string>
    4. using namespace std;
    5.  
    6. int main() {
    7. ios::sync_with_stdio(false);
    8. cin.tie(NULL);
    9. cout.tie(NULL);
    10. int n;
    11. string s;
    12. cin >> n;
    13. cin >> s;
    14. sort(s.begin(), s.end());
    15. cout <<s<< endl;
    16.  
    17.  
    18. return 0;
    19. }