| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82667 | 杜奕辰 | 如何得到"hello" | C++ | Accepted | 1 MS | 284 KB | 284 | 2024-07-13 14:32:40 |
#include<bits/stdc++.h> using namespace std; int main(){ string n; string a="hello"; int b=0; int k=0; cin>>n; for(int i=0;i<n.size();i++){ if(n[i]==a[k]){ b++; k++; if(b==5){ cout<<"YES"; return 0; } } } cout<<"NO"; return 0; }