Run ID:74634

提交时间:2024-05-25 16:46:03

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1501],b[5]={'h','e','l','l','o'}; cin>>a; int c=0; for(int i=0;a[i]!='\0';i++){ if(a[i]==b[c]) c++; } if(c==5) cout<<"YES"; else cout<<"NO"; return 0; }