Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134036 石水生 如何得到"hello" C++ Accepted 1 MS 276 KB 262 2025-10-25 15:05:10

Tests(20/20):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; string s1="hello"; int s1_i=0; int len=s.length(); for(int i=0;i<len;i++){ if(s[i]==s1[s1_i]) s1_i++; } if(s1_i==5) cout<<"YES"; else cout<<"NO"; return 0; }