Run ID:82664

提交时间:2024-07-13 14:32:09

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