Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128068 | 袁龙浩 | 如何得到"hello" | C++ | Accepted | 1 MS | 272 KB | 495 | 2025-07-31 19:30:06 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char a[5]={'h','e','l','l','o'},b[2350]; int s=0; cin>>b; for(int i=0;b[i]!='\0';i++){ if(b[i]==a[s]) s++; } if(s==5) cout<<"YES"; else cout<<"NO"; return 0; }