| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157018 | 邓弘锐 | 如何得到"hello" | C++ | Accepted | 3 MS | 280 KB | 310 | 2026-07-12 14:59:09 |
#include<bits/stdc++.h> using namespace std; char s1[10086]; char a[6]="hello"; int main(){ cin>>s1; int len = strlen(s1),k=0; for(int i=0; i<=len-1;i++) { if(s1[i]==a[k]){ k++; } if(k==5){ cout<<"YES"; return 0; } } cout<<"NO"; return 0; }