hdu2017——字符串统计
来源:互联网 发布:软件测试银行项目 编辑:程序博客网 时间:2024/05/20 06:27
原题:
Problem Description
Input
Output
Sample Input
asdfasdf123123asdfasdf
asdf111111111asdfasdfasdf
Sample Output
9
源码:
#include<stdio.h>#include<string.h>int main(){ int n,len; char a[200]; scanf("%d",&n); getchar(); while(n--) { int k=0; gets(a); len=strlen(a); for(int j=0; j<=len; j++) { if(a[j]<='9'&&a[j]>='0') k++; } printf("%d\n",k); } return 0;}
- hdu2017——字符串统计
- hdu2017 字符串统计
- hdu2017 字符串统计
- hdu2017(字符串统计)
- hdu2017字符串统计
- HDU2017 字符串统计
- HDU2017 字符串统计
- HDU2017字符串统计
- HDU2017 字符串统计
- HDU2017--字符串统计
- Hdu2017 字符串统计
- HDU2017字符串统计
- hdu2017(字符串统计)java水过
- (解题报告)HDU2017---字符串统计
- hdu2017
- HDU2017
- hdu2017
- HDU2017
- struts2入门(8)--OGNL
- gnu c library常用函数总结--底层IO (glibc) open read write lseek
- struts2.X心得11--struts2中的国际化
- HashMap和Hashtable的区别
- 月份计算
- hdu2017——字符串统计
- Java乔晓松-Struts2-国际化和OGNL表达式
- hdu2018——母牛的故事
- struts2.X心得12--OGNL表达式语言1
- 【算法】最小生成树之Kruskal
- 知易游戏开发教程cocos2d-x移植版002
- Smali语法基础知识
- 布局的优化
- 看不懂的代码