1
2025-04-12 21:05:11
发布于:陕西
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
char s[1000];
int z=0;
fgets(s,1000,stdin);
for(int i;i<=strlen(s)-1;i++){
if('0'<=s[i] and '9'>=s[i]){
z++;
} else if('a'<=s[i] and 'z'>=s[i]){
z++;
} else if('A'<=s[i] and 'Z'>=s[i]){
z++;
} else
z=z;
}
cout<<z;
return 0;
}
这里空空如也
有帮助,赞一个