Run ID:119726

提交时间:2025-05-18 16:41:47

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