| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74657 | 荀逸萱 | 如何得到"hello" | C++ | Wrong Answer | 0 MS | 284 KB | 367 | 2024-05-25 16:54:38 |
#include<iostream> #include<list> #include<stack> #include<cstring> #include<queue> #include<algorithm> using namespace std; int main(){ char a[5]={'h','e','l','l','o'}; char b[11501]; cin>>b; int l=strlen(b); int s=0; for(int i=0;i<l;i++){ if(a[5]==b[i]){ s++; } }if(s==5){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }
------Input------
uicgenjiwkpeplyjonahvkpvmvgdggmbflbbevggfhpyvvvoupsowcujfizdcmqtflgrilfunhyikhpzpcsykcwaxztvhuurdjngpjsujpshxvbudmwokrkayotrzwgwcgjaneoczamqknzigsrbzgrghnnsabwakohmymlxhkcepcdubsphhzjlspwjjazbypfptnqlxmpgsttwkqgealmnqihpntgchgqxxfwnfr
------Answer-----
YES
------Your output-----
NO