Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125056 | 范恒恺 | 如何得到"hello" | C++ | Accepted | 1 MS | 272 KB | 284 | 2025-07-13 10:50:26 |
#include<iostream> #include<cstring> #include<cmath> using namespace std; char a[1500]; char b[10]="hello"; int main () { int k=0; cin>>a; int len=strlen(a); for(int i=0;i<len;i++){ if(a[i]==b[k]){ k++; } } if(k>4){ cout<<"YES"; }else{ cout<<"NO"; } }