Run ID:155860
提交时间:2026-06-14 11:20:25
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1501]={}; char b[5]={'h','e','l','l','o'}; cin>>a; int d=strlen(a),c=0; for(int i=0;i<d;i++){ if(a[i]==b[c])c++; } if(c==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }