杭电2030
来源:互联网 发布:淘宝关键词查询 编辑:程序博客网 时间:2024/05/19 19:57
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<ctype.h>
int main()
{
int n;
scanf("%d",&n);
int count;
char str[1001];
int i,len,k=0;
for(count=1;count<=n;count++)
{
getchar();
gets(str);
len=strlen(str);
for(i=0;i<len;i++)
{
if((str[i])<32||(str[i])>126)
{
k++;
}
}
printf("%d\n",(k+1)/2);
memset(str,0,sizeof(str));
k=0;
}
return 0;
}
0 0
- 杭电2030
- 杭电2030
- 杭电2030
- 杭电acm 2030
- 杭电2030
- 杭电2030
- 杭电2030
- 杭电2030 汉字统计
- 杭电2030 汉字统计
- 杭电2030汉字统计
- 杭电 2030 汉字统计
- 【杭电】[2030]汉字统计
- 杭电2030解题代码
- 杭电oj编码2030
- 杭电2030汉字统计
- 杭电
- 杭电
- 杭电
- 657 - The die is cast
- C语言sscanf和sprintf输入输出使用及Strlen、Memset解释
- leetcode Permutations II
- vs2010(c++)版“hello world”
- hdu1030
- 杭电2030
- startActivity问题
- 用 stack 解决“八皇后问题”
- HDU 1312 Red and Black(深搜)
- iOS 的 APP 在系统中如何适应 iPhone 5s/6/6 Plus 三种屏幕的尺寸?
- Comparable和Comparator的区别
- 深夜深思,创业旅途
- 创业的关键:顺势而为
- ssh