Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157012 赵奕杰 如何得到"hello" C++ Accepted 1 MS 268 KB 241 2026-07-12 14:29:52

Tests(20/20):


Code:

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