| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41802 | Songgr | 蚱蜢跳跃 | C++ | Wrong Answer | 0 MS | 252 KB | 432 | 2024-02-23 11:48:03 |
// #include<bits/stdc++.h> using namespace std; int main() { string str; getline(cin,str); int minn=-1,temp,last=0; bool flag=true; for(int i=0;i<str.size();i++){ if(str[i]=='A'||str[i]=='E'||str[i]=='O'||str[i]=='U'){ flag=true; temp=i-last; if(temp>minn) minn=temp; last=i; } } if(flag) cout<<minn<<endl; else cout<<str.size()+1<<endl; return 0; }