#include <iostream>
#include "string"
using namespace std;
int main()
{
int n;
string s;
cin >> n;
while ( n)
{
cin >> s;
int t = 0,len=s.size();
for (int i = 0; i<len; i++)
{
if ('0' <= s[i] && s[i] <= '9')
t++;
}
cout << t << endl;
n--;
}
}
杭电OJ2017
猜你喜欢
转载自blog.csdn.net/weixin_42265486/article/details/83660510
今日推荐
周排行