Run ID:160117

提交时间:2026-09-12 15:06:07

#include<bits/stdc++.h> #include<cstring> using namespace std; string s,s1 = "hello"; int main() { cin >> s; int n = s.size(); int j = 0; for(int i = 0; i <= n - 1; i++) { if(s[i] == s1[j]) { j++; if(j == 5){ break; } } } if(j == 5){ cout << "YES"; }else{ cout << "NO"; } return 0; }