#include <bits/stdc++.h>
using namespace std;
int main() {
char str[10];
gets(str);
int len = strlen(str);
int count = 0;
for (int i = 0; i < len; i++)
if ((str[i] >= 65 && str[i] <= 90) || (str[i] >= 97 && str[i] <= 122) || (str[i] >= 48 && str[i] <= 57))
count++;
printf("%d\n", count);
return 0;
}
P5015 标题统计
最新推荐文章于 2024-02-22 11:16:03 发布