Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119726 | 黄睿杰 | 如何得到"hello" | C++ | Accepted | 1 MS | 276 KB | 234 | 2025-05-18 16:41:47 |
#include<bits/stdc++.h> using namespace std; char a[6]="hello",b[10000]; int main(){ cin>>b; int len=strlen(b),s=0; for(int i=0;i<len;i++){ if(b[i]==a[s]) s++; } if(s==5) cout<<"YES"; else cout<<"NO"; return 0; }