mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
294 B
C++
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;
|
||
|
}
|