Problem : 2030 ( 汉字统计 ) Judge Status : AcceptedRunId : 6002775 Language : C Author : qq1203456195Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include <stdio.h>
2 int main()
3 {
4 char str[
101];
5 int cnt,i,n;
6 scanf(
"%d",&
n);
7 getchar();
8 while(n--
)
9 {
10 gets(str);
11 i=
0;
12 cnt=
0;
13 while (str[i]!=
'\0')
14 {
15 if(str[i]<
0) cnt++
;
16 i++
;
17 }
18 printf(
"%d\n",cnt>>
1);
19 }
20 return 0;
21 }
转载于:https://www.cnblogs.com/CheeseZH/archive/2012/05/26/2519311.html
相关资源:数据结构—成绩单生成器
转载请注明原文地址: https://win8.8miu.com/read-1494305.html