| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155861 | 李沐阳 | 如何得到"hello" | C++ | Accepted | 1 MS | 280 KB | 297 | 2026-06-14 11:22:27 |
#include<bits/stdc++.h> using namespace std; int main(){ char q[1501]; cin>>q; int e[5]={'h','e','l','l','o'}; int c=0; int h=strlen(q); for(int i=0;i<h;i++){ if(q[i]==e[c]){ c++; } } if(c==5){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }