https://old.ynoip.cn/problem/discuss?id=1268

Papyrus在审判你  •  1年前


include<bits/stdc++.h>

int main(){

char ch,a[30];
int b=0,s=0,t=0,i=0;
while((ch=getchar())!='\n'){
    a[i]=ch;
    if(a[i]>=65&&a[i]<=90){
        b++;
    }
    if(a[i]>=97&&a[i]<=122){
        s++;
    }
    if(a[i]==32){
        t++;
    }
    i++;
}
printf("%d %d %d",b,s,t);

}


评论:

请先登录,才能进行评论