| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62440 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 如何得到"hello" | C++ | Wrong Answer | 1 MS | 276 KB | 450 | 2023-12-23 17:26:54 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1500]; bool b; cin>>a; int s=strlen(a); for(int i=0;i<s;i++){ if(a[i]='h'){ b=true; } else if(a[i]='e'){ b=true; } else if(a[i]='l'){ b=true; } else if(a[i]='l'){ b=true; } else if(a[i]='o'){ b=true; } } if(b=true){ cout<<"YES" ; } else{ cout<<"NO"; } return 0; }
------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES