HDU/2017/main.c

19 lines
337 B
C
Raw Normal View History

2020-08-31 16:48:58 +00:00
#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;
}