| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144400 | 万骏博 | 如何得到"hello" | C++ | Wrong Answer | 0 MS | 268 KB | 263 | 2026-01-22 10:38:14 |
#include<bits/stdc++.h> using namespace std; string s,c="hello"; int a=0,k=0; int main(){ cin>>s; a=s.size(); for(int i=0;i<a;i++){ if(s[i]==c[k]){ k++; } } if(a>4){ printf("YES"); } else{ printf("NO"); } return 0; }
------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES