哈哈!!水题!!!
#include <iostream>
#include <cstdio>
#include <cstring>
#include <map>
#define N 100005
using namespace std;
map<char,int> m;
char str[N];
int main()
{
while(gets(str))
{
m.clear();
int len=strlen(str);
for(int i=0;i<len;i++){
if(islower(str[i])){
m[str[i]]++;
}
}
for(int i=0;i<26;i++){
printf("%c:%d\n",'a'+i,m['a'+i]);
}
printf("\n");
}
return 0;
}