Solution to the problem number 1064C of Codeforces - 1064C.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n; cin>>n;
    string s; cin>>s;
    sort(s.begin(), s.end()); cout<<s<<'\n';
    /*
    int res = 0;
    char last = '\0';
    string au;
    for(int i=0;i<n;i++)
    {
        if(s[i]==last)  res+=au.length();
        else au = "";
        res++;
        last=s[i];
        au += s[i];
    }
    printf("%d\n",res);*/
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!