Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
119079 Kevin 如何得到"hello" C++ Accepted 1 MS 264 KB 309 2025-05-14 14:31:29

Tests(20/20):


Code:

#include<iostream> #include<cstdio> #include<cstring> using namespace std; char a[1550]; int main(){ char b[6]="hello"; gets(a); int len=strlen(a); int count=0; for(int i=0;i<len;i++){ if(a[i]==b[count]){ count++; } } if(count==5) cout<<"YES"; else cout<<"NO"; return 0; }