#include bitsstdc++husing namespace std;const int N=1e7+7;char strN;int t250;int main cinstr; int len=strlenstr; forint i=0;ilen;i++ tstri++; forint i=250;i0;i--
#include <bits/stdc++.h>
using namespace std;
const int N=1e7+7;
char str[N]; int t[250]; int main() { cin>>str; int len=strlen(str); for(int i=0;i<len;i++) { t[str[i]]++; } for(int i=250;i>0;i--) { if(t[i]) { cout<<char(i)<<t[i]; } } return 0; }
原文地址: http://www.cveoy.top/t/topic/isj1 著作权归作者所有。请勿转载和采集!