题解(两行!!)
2026-08-10 16:25:24
发布于:四川
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;string s;bool flag=1;int ans=1,top=1;int main(){stdcin>>s;s=' '+s;if(ans1){bool f=false;for(int j=top;j<s.size()-1&&(s[j]'m'||s[j]'M');j++){top++;f=true;}if(!f)flag=false;ans=2;}if(ans2){bool f=false;for(int j=top;j<=s.size()-1&&(s[j]'e'||s[j]'E');j++){top++;f=true;}if(!f)flag=false;ans=3;}if(ans3){bool f=false;for(int j=top;j<=s.size()-1&&(s[j]'O'||s[j]'o');j++){top++;f=true;}if(!f)flag=false;ans=4;}if(ans4){bool f=false;for(int j=top;j<=s.size()-1&&(s[j]'w'||s[j]'W');j++){top++;f=true;}if(!f)flag=false;ans=4;}stdcout<<(flag&&top==s.size()?"YES":"NO");return 0;}
这里空空如也






有帮助,赞一个