Run ID:134897

提交时间:2025-11-01 17:09:16

#include <bits/stdc++.h> using namespace std; char a[1500]; char b[100]={"hello"}; int main() { cin>>a; int s=0; int k=strlen(a); for(int i=1;i<k;i++){ if(a[i] == b[s]){ s++; } } if(s==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }