您的位置:首页 > 其它

HDU 2030 - 汉字统计

2013-11-29 00:07 295 查看
题目链接:

http://acm.hdu.edu.cn/showproblem.php?pid=2030

#include <stdio.h>
#include <string.h>

int main(void)
{
int n;
int count;
char c;

scanf("%d%*c", &n);

while (n--)
{
count = 0;

while ((c = getchar()) != '\n')
{
if (c < 0)
count++;
}

printf("%d\n", count / 2);
}

return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  HDU2030 ACM