| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74649 | 牛延希 | 如何得到"hello" | C++ | Wrong Answer | 1 MS | 276 KB | 260 | 2024-05-25 16:50:59 |
# include<iostream> using namespace std; int main(){ int j=0; char a[1501],b[114]={"hello"}; cin>>a; for(int i=0;a[i]!='\0';i++){ if(a[i]==b[j]) j++; if(j==4){ cout<<"YES"; return 0; } }cout<<"NO"; return 0; }
------Input------
hell
------Answer-----
NO
------Your output-----
YES