文章
13
粉丝
0
获赞
16
访问
1.7k
#include<bits/stdc++.h>
using namespace std;
int main(){
char s[1001];
while(fgets(s,sizeof(s),stdin) != NULL){
int count[26] = {0};
for(int i = 0; s[i] != '\0'; i++){
if(isupper(s[i])){
count[s[i] - 'A']++;
}
}
for(int i = 0; i < 26; i++){
printf("%c:%d\n",'A' + i,count[i]);
}
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发