Run ID:73443
提交时间:2024-05-18 22:23:11
#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; }