Run ID:157018
提交时间: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; }