题解
2025-10-15 20:56:21
发布于:广东
4阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
char a[100100];
fgets(a,100100,stdin);
int temp = 0;
for(int i = 0;i < strlen(a);i++)
{
if((a[i] >= 'A' && a[i] <= 'Z') || (a[i] >= 'a' && a[i] <= 'z') || (a[i] >= '0' && a[i] <= '9'))
{
temp++;
}
}
cout<<temp;
return 0;
}
这里空空如也



有帮助,赞一个