| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82636 | 石茂诤 | 如何得到"hello" | C++ | Accepted | 1 MS | 284 KB | 278 | 2024-07-13 14:26:29 |
#include<bits/stdc++.h> using namespace std; string a ; char b[]={'h','e','l','l','o'}; int c=0; int main(){ getline(cin,a); for(int i=0;i<a.length();i++){ if(b[c]==a[i]){ c++; } } if(c==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }