Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128067 唐诗阳 如何得到"hello" C++ Accepted 2 MS 284 KB 444 2025-07-31 19:17:18

Tests(20/20):


Code:

#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a[11501],b[6]={"hello"}; cin>>a; int s1=strlen(a),s=0; for(int i=0;i<s1;i++){ if(a[i]==b[s]){ s++; } } if(s==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }