| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 125038 | 王金檐 | 如何得到"hello" | C++ | Wrong Answer | 0 MS | 272 KB | 385 | 2025-07-13 10:22:07 |
#include <iostream> #include <cstring> using namespace std; char a[50]; int main(){ int h=0,e=0,l=0,o=0; cin>>a; int n=strlen(a); for(int i=0;i<n;i++){ if(a[i]=='h'){ h++; } if(a[i]=='e'){ e++; } if(a[i]=='l'){ l++; } if(a[i]=='o'){ o++; } } if(h==1&&e==1&&l==2&&o==1){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }
------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES