Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134897 鲁博睿 如何得到"hello" C++ Accepted 1 MS 276 KB 282 2025-11-01 17:09:16

Tests(20/20):


Code:

#include <bits/stdc++.h> using namespace std; char a[1500]; char b[100]={"hello"}; int main() { cin>>a; int s=0; int k=strlen(a); for(int i=1;i<k;i++){ if(a[i] == b[s]){ s++; } } if(s==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }