733A Grasshopper And the String codeforces(水题)
来源:互联网 发布:淘宝双11秒杀技巧 编辑:程序博客网 时间:2024/05/22 04:55
#include<bits/stdc++.h>using namespace std;int main(){ char str[105]; cin>>str; int len=strlen(str); for(int i=len-1;i>=0;i--) str[i+1]=str[i]; int step=0,max1=0,now; for(int i=1;i<=len;i++) { if(str[i]=='A'||str[i]=='E'||str[i]=='I'||str[i]=='O'||str[i]=='U'||str[i]=='Y') { now=i-step; step=i; max1=max(max1,now); } } now=len-step+1; max1=max(max1,now); cout<<max1<<endl; return 0;}
0 0
- Codeforces 733A Grasshopper And the String
- codeforces--733A. Grasshopper And the String
- CodeForces 733A - Grasshopper And the String
- Codeforces 733A Grasshopper And the String
- 733A Grasshopper And the String codeforces(水题)
- CodeForces 733A Grasshopper And the String(水题)
- 【非常高%】【codeforces 733A】Grasshopper And the String
- CodeForces 733 A.Grasshopper And the String(水~)
- 733A Grasshopper And the String
- A. Grasshopper And the String
- A. Grasshopper And the String
- Codeforces Round #378 (Div. 2)A. Grasshopper And the String
- Codeforces Round #378 (Div. 2) A. Grasshopper And the String
- codeforces#378 Div.2 A. Grasshopper And the String
- [codeforces] A. Grasshopper And the String 简单模拟
- codeforces 733A 733B之Grasshopper And the String Parade
- CodeForces 733A Grasshopper And the String(蚂蚱跳字符)
- Codeforces Round #378 (Div. 2)A.Grasshopper And the String【水题】模拟
- String中的常用方法
- 二分查找 C 、C++STL
- PriorityBlockingQueue
- HBase的Block Cache实现机制分析
- Ubuntu常用命令
- 733A Grasshopper And the String codeforces(水题)
- Linux下Gcc生成和使用静态库和动态库详解(转)
- linux中top、du、df、netstat、date、grep、ps、find文件格式以及文件内容排序去重
- Java线程:概念与原理
- android群英传笔记--第四章--ListView使用技巧(一)
- SynchronousQueue
- 733B Parade codeforces(水题)
- HTTP错误集合
- LoadRunner