Run ID:82644

提交时间:2024-07-13 14:31:07

#include<bits/stdc++.h> using namespace std; int main(){ string s; strins a="hello"; int c-0; int k=0; cin>>s; for(int i=0;i<s.size();i++){ if(s[i]==a[k]){ k++; c++; if(c==5){ cout<<"YES"; return 0; } } } cout<<"NO"; return 0; }