标签:字符 BMI sub std bsp code 整型 长度 --
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 113282 Accepted Submission(s): 62007
1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 int n,i; 6 char a[10000]; 7 scanf("%d",&n); 8 while(n--) 9 { 10 int sum=0; 11 scanf("%s",a); 12 for(i=0;i<strlen(a);i++) 13 { 14 if(a[i]>=‘0‘&&a[i]<=‘9‘)sum+=1; 15 } 16 printf("%d\n",sum); 17 } 18 return 0; 19 }
标签:字符 BMI sub std bsp code 整型 长度 --
原文地址:https://www.cnblogs.com/lightice/p/10261195.html