Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144401 万骏博 如何得到"hello" C++ Accepted 1 MS 276 KB 263 2026-01-22 10:38:43

Tests(20/20):


Code:

#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(k>4){ printf("YES"); } else{ printf("NO"); } return 0; }