Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74640 只因你太美(Ikun 真爱粉) 如何得到"hello" C++ Wrong Answer 1 MS 280 KB 364 2024-05-25 16:48:11

Tests(0/20):


Code:

#include <iostream> #include <string>` using namespace std; int main(){ char a[10000],b[6]="hello"; int m=0,n=0; cin>>a; for(int i=0;a[i]!='\0';i++){ if(a[i]==b[n]){ n++; if(b[n]=='o'){ cout<<"yes"; return 0; } } } cout<<"no"; return 0; }


Run Info:

------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
no