Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144399 万骏博 如何得到"hello" C++ Wrong Answer 0 MS 272 KB 259 2026-01-22 10:37:23

Tests(0/20):


Code:

#include<bits/stdc++.h> using namespace std; string s,c="hello"; int a=0; int main(){ cin>>s; a=s.size(); for(int i=0;i<a;i++){ if(s[i]==c[a]){ a++; } } if(a>4){ printf("YES"); } else{ printf("NO"); } return 0; }


Run Info:

------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES