| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155860 | 余建成 | 如何得到"hello" | C++ | Accepted | 1 MS | 276 KB | 283 | 2026-06-14 11:20:25 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1501]={}; char b[5]={'h','e','l','l','o'}; cin>>a; int d=strlen(a),c=0; for(int i=0;i<d;i++){ if(a[i]==b[c])c++; } if(c==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }