2 asdfasdf123123asdfasdf asdf111111111asdfasdfasdf
6 9分析:水题不解释~原码:#include<stdio.h> #include<string.h> int main() { int n,len; char a[200]; scanf("%d",&n); getchar(); while(n--) { int k=0; gets(a); len=strlen(a); for(int j=0; j<=len; j++) { if(a[j]<='9'&&a[j]>='0') k++; } printf("%d\n",k); } return 0; }