Run ID:131466
提交时间:2025-09-26 19:14:36
//1444 如何得到"hello" #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ char n[1500],n_i[6]="hello"; int l=0,c=0; cin>>n; l=strlen(n); for(int i=0;i<l;i++){ if(n[i]==n_i[c]){ c++; } } if(c>=5){ cout<<"YES"; } else { cout<<"NO"; } return 0; }