Run ID:144401

提交时间:2026-01-22 10:38:43

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