| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157694 | 王润中 | 如何得到"hello" | C++ | Accepted | 1 MS | 268 KB | 309 | 2026-08-15 10:27:23 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1550]; gets(a); int p=0; int len=strlen(a); char b[5]={'h','e','l','l','o'}; for(int i=0;i<len;i++){ if(a[i]==b[p]){ p++; } } if(p==5){ cout<<"YES"; } else{ cout<<"NO"; } }