Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155859 张蔚林 如何得到"hello" C++ Accepted 1 MS 276 KB 279 2026-06-14 11:15:29

Tests(20/20):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char t[1501]={}; char s[5]={'h','e','l','l','o'}; int c=0; cin>>t; for(int i=0;i<strlen(t);i++){ if(t[i]==s[c]){ c++; } } if(c==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }