Run ID:111328
提交时间:2025-03-01 11:52:56
#include<bits/stdc++.h> using namespace std; int main() { string s1,s2="hello"; cin>>s1; int len=s1.size(); int i=0; for(int j=0;j<len;j++){ if(s1[j]==s2[i]){ i++; } } if(i==5){ cout<<"YES"; return 0; } cout<<"NO"; return 0; }