Run ID:134914

提交时间:2025-11-01 17:18:52

#include<bits/stdc++.h> using namespace std; char s[50]; char a[60]="hello"; int main(){ int k=0; cin>>s; int n=strlen(s); for(int i=0;i<n;i++){ if(s[i]==a[k]){ k++; } if(k==5){ cout<<"YES"; return 0; } } if(k<5)cout<<"NO"; }