HDU/2017/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

19 lines
337 B
C

#include <stdio.h>
int main(void){
long numbers = 0;
scanf("%ld",&numbers);
long i = 0;
char string[1024];
for(i = 0; i < numbers; i++){
scanf("%s",string);
long count = 0, temp = 0;
while(string[count] != '\0'){
if(string[count] > 47 && string[count] < 58) temp++;
count++;
}
printf("%ld\n",temp);
}
return 0;
}