#include <iostream>
#include <cctype>
#include <string>
using namespace std;
int main()
{
int n, i = 0, num = 0;
int y = 0;
string Lu;
cin >> n;
while (i < n)
{
cin >> Lu;
int x = Lu.length();
for (y = 0; y < x; y++)
{
if (isdigit(Lu[y]))
num++;
}
cout << num << endl;
i++;
y = 0;
num = 0;
}
return 0;
}
HDU ACM 11 2017 字符串统计
最新推荐文章于 2019-12-20 10:02:30 发布