Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111292 | 王煜鑫 | 如何得到"hello" | C++ | Wrong Answer | 1 MS | 276 KB | 323 | 2025-03-01 11:34:34 |
#include<bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; int len,b=0; len=a.size(); for(int i=0;i<len;i++){ if(a[i]=='h'||a[i]=='e'||a[i]=='l'||a[i]=='o'){ b++; } else{ b=b+0; } } if(b==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }
------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES