Run ID:160108
提交时间:2026-09-12 15:01:21
#include<bits/stdc++.h> using namespace std; string s1="hello"; int main() { string s; cin>>s; int j=0; for(int i=0; i<s.size(); i++) { if(s[i]==s1[j]) { j++; if(j==5) { cout<<"YES"; return 0; } } } cout<<"NO"; }