#include<bits/stdc++.h>
using namespace std;
map<int,int>mp;
int main(){
string str;
cin>>str;
for(auto t:str){
int k=t-'0';
mp[k]++;
}
for(auto t:mp){
cout<<t.first<<":"<<t.second<<endl;
}
}
1021 个位数统计
最新推荐文章于 2024-08-09 20:36:57 发布