| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151564 | Kevin | 如何得到"hello" | C++ | Accepted | 2 MS | 284 KB | 296 | 2026-04-14 09:11:27 |
#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main() { string a,b="hello"; cin>>a; int t=0; int len=a.size(); for(int i=0;i<len;i++){ if(a[i]==b[t]){ t++; } } if(t==5) { cout<<"YES"; } else{ cout<<"NO"; } return 0; }