OJ-Problems-Source/HDOJ/2017_autoAC.cpp
2016-08-19 16:52:35 +08:00

18 lines
294 B
C++

#include <ctype.h>
#include <stdio.h>
int main(void)
{
int n, d;
char c;
scanf("%d%*c", &n);
while (n--)
{
for (d = 0 ; (c = getchar()) != '\n' ;)
{
if (isdigit(c)) d++;
}
printf("%d\n", d);
}
return 0;
}