mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
339 B
C++
18 lines
339 B
C++
|
#include<stdio.h>
|
||
|
#include<memory.h>
|
||
|
int main ()
|
||
|
{
|
||
|
int s,i,b[26];
|
||
|
char a[100001];
|
||
|
while(gets(a)!=NULL)
|
||
|
{
|
||
|
memset(b,0,sizeof(b));
|
||
|
for(i=0;a[i]!='\0';i++)
|
||
|
b[a[i]-'a']++;
|
||
|
for(i=0;i<26;i++)
|
||
|
printf("%c:%d\n",'a'+i,b[i]);
|
||
|
printf("\n");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|