Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6293 邓小龙 如何得到"hello" C++ Wrong Answer 0 MS 256 KB 544 2025-01-16 15:53:25

Tests(0/20):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char n[1501],b[10]="hello"; cin>>n;//n="hbcdefg" int a=strlen(n),c=0; for(int i=0;i<a;i++){ while(c!=5){ if(n[i]==b[c]){ c++; } i++; } } c==5 ? printf("YES"):printf("NO"); return 0; }


Run Info:

------Input------
dxvdzxfqicoheozyzzzeszzycmuuhdakcxquwynruajwfyrrktttmkkreehsuaihwbdczvvsditymarldj
------Answer-----
NO
------Your output-----
YES