标签:ret ring end cout tor main string include ace
#include<cstdio>
#include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int>v(10);
string s;
cin>>s;
for(int i=0;i<s.length();i++){
v[s[i]-‘0‘]++;
}
for(int i=0;i<10;i++){
if(v[i]!=0)
cout<<i<<":"<<v[i]<<endl;
}
return 0;
}
标签:ret ring end cout tor main string include ace
原文地址:https://www.cnblogs.com/tao7/p/9768595.html