Run ID:82686

提交时间:2024-07-13 14:39:58

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