Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129696 薛承谦 如何得到"hello" C++ Accepted 2 MS 284 KB 288 2025-09-02 10:28:19

Tests(20/20):


Code:

#include<iostream> #include<algorithm> #include<cstring> #include<bits/stdc++.h> using namespace std; int main(){ char a[1501],b[6]={'h','e','l','l','o'}; int c=0; cin>>a; for(int i=0;a[i];i++){ if(a[i]==b[c]){ c++; } } cout<<(c==5?"YES":"NO"); return 0; }