Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100662 | 杨登博 | 如何得到"hello" | C++ | Wrong Answer | 1 MS | 276 KB | 415 | 2024-12-09 20:23:41 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() using namespace std; int main(){ char a[1500],m[6]="hello"; cin>>a; int n=0,b; b=strlen(a); for(int i=0;a[i]!='\0';i++){ if(a[i]==m[b]) n++; } if(b==n) cout<<"YES"; else cout<<"NO"; return 0; }
------Input------
uicgenjiwkpeplyjonahvkpvmvgdggmbflbbevggfhpyvvvoupsowcujfizdcmqtflgrilfunhyikhpzpcsykcwaxztvhuurdjngpjsujpshxvbudmwokrkayotrzwgwcgjaneoczamqknzigsrbzgrghnnsabwakohmymlxhkcepcdubsphhzjlspwjjazbypfptnqlxmpgsttwkqgealmnqihpntgchgqxxfwnfr
------Answer-----
YES
------Your output-----
NO