Run ID:155861

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