Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131466 翁思宸 如何得到"hello" C++ Accepted 1 MS 276 KB 411 2025-09-26 19:14:36

Tests(20/20):


Code:

//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; }