标签:des style blog color io java ar strong for
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 41389 Accepted Submission(s):
23096
1 #include<cstdio> 2 #include<cstring> 3 int main() 4 { 5 int n; 6 while(scanf("%d",&n)==1) 7 { 8 getchar(); 9 for(int i=1;i<=n;i++) 10 { 11 int counts=0; 12 char s[100]; 13 gets(s); 14 for(int j=0;j<strlen(s);j++) 15 if(s[j]>=‘0‘&&s[j]<=‘9‘)counts++; 16 printf("%d\n",counts); 17 } 18 } 19 return 0; 20 }
标签:des style blog color io java ar strong for
原文地址:http://www.cnblogs.com/The-courage-that-year/p/3993710.html