#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<string>
#include<cmath>
#include<stack>
#include<queue>
#include<vector>
#include<set>
#include<map>
#define ll long long
#define mes(x,y) memset(x,y,sizeof(x))
using namespace std;
int main(){
map<long,long>mmap;
set<char>sset;
set<char>::iterator ssset;
string s;
while(cin>>s){
for(int i=0;i<s.length();i++){
mmap[s[i]]++;
sset.insert(s[i]);
}
for(ssset=sset.begin();ssset!=sset.end();ssset++){
cout<<*ssset<<":"<<mmap[*ssset]<<endl;
}
}
return 0;
}
L1-003 个位数统计
最新推荐文章于 2022-12-12 15:25:22 发布