uva oj 494
来源:互联网 发布:php模板消息接口 demo 编辑:程序博客网 时间:2024/06/15 20:03
#include<cstdio>#include<iostream>#include<cstring>#include<ctype.h>using namespace std;char s[100000000];int main(){ int i,len,count,flag; //while(fgets(s,100,stdin)!=NULL) while(gets(s)!=NULL) { flag=1; count=0; len=strlen(s); for(i=0;i<len;i++) { if(isalpha(s[i])&&flag) { count++; flag=0; } if(!isalpha(s[i])) flag=1; } printf("%d\n",count); memset(s,0,sizeof(s)); } return 0;}//AC//设标记变量,因为中间间隔的不一定是空格。
- uva oj 494
- uva oj 494
- UVa OJ
- UVa OJ 494-Kindergarten Counting Game
- UVA OJ:494 - Kindergarten Counting Game
- uva oj java输入输出
- UVa OJ 401-Palindromes
- UVa OJ 579-ClockHands
- UVa OJ 10082-WERTYU
- UVa OJ 673-Parentheses
- UVa OJ 10106-Product
- UVa OJ 748-Exponentiation
- UVa OJ 11417-GCD
- UVa OJ 11926-Multitasking
- uva oj 414
- uva oj 458
- uva oj 445
- uva oj 488
- AAM(Active Appearance Model)算法介绍 .
- 本机无法访问vmware虚拟机WEB服务器解决办法
- 一点一滴完全突破KAZE特征检测算法,从各向异性扩散滤波开始(1)
- 降维的主要方法
- 在非MFC程序中引用CString
- uva oj 494
- jQuery 取值、赋值的基本方法 (转自CNBLOG)
- 《Sparse and Redundant Representations:From Theory to Applications in Signal and Image Processing》序论
- PHP基本语法
- GB2312、UTF_8、UNICODE之间相互转换
- uva oj 10300
- ReSharper:著名的VS代码生成工具
- 求树深度的递归算法
- jquery 追加tr和删除tr 编辑