Run ID:82638

提交时间:2024-07-13 14:31:00

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