| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144397 | 万骏博 | 如何得到"hello" | C++ | Wrong Answer | 0 MS | 268 KB | 371 | 2026-01-22 10:28:07 |
#include<bits/stdc++.h> using namespace std; string s; int a=0,b=0,c=0,d=0; int main(){ cin>>s; a=s.size(); for(int i=0;i<a;i++){ if(s[i]=='h'){ a++; } if(s[i]=='e'){ b++; } if(s[i]=='l'){ c++; } if(s[i]=='o'){ d++; } } if(a>=1&&b>=1&&c>=2&&d>=1){ printf("YES"); } else{ printf("NO"); } return 0; }
------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES