Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74658 荀逸萱 如何得到"hello" C++ Wrong Answer 1 MS 276 KB 367 2024-05-25 16:55:28

Tests(1/20):


Code:

#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[i]==b[s]){ s++; } }if(s==5){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }


Run Info:

------Input------
uicgenjiwkpeplyjonahvkpvmvgdggmbflbbevggfhpyvvvoupsowcujfizdcmqtflgrilfunhyikhpzpcsykcwaxztvhuurdjngpjsujpshxvbudmwokrkayotrzwgwcgjaneoczamqknzigsrbzgrghnnsabwakohmymlxhkcepcdubsphhzjlspwjjazbypfptnqlxmpgsttwkqgealmnqihpntgchgqxxfwnfr
------Answer-----
YES
------Your output-----
NO