Run ID:111310
提交时间:2025-03-01 11:48:40
#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[i]==s2[i]){ i++; if(i==5){ cout<<"YES"; break; } } } cout<<"NO"; return 0; }