#include <iostream>
#include<iomanip>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int n;
while (cin >> n)
{
int nn = n;
while (nn--)
{
char a[1000];
int c = 0;
cin >> a;
for (int i = 0; i <strlen(a); i++)
{
if (a[i] - '0' >= 0 && a[i] - '0' <= 9)
c++;
}
cout<<c<<endl;
}
}
return 0;
}
小熊崽纸的杭电2017
最新推荐文章于 2020-07-30 15:08:08 发布