| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160108 | 杜雨轩 | 如何得到"hello" | C++ | Accepted | 1 MS | 276 KB | 256 | 2026-09-12 15:01:21 |
#include<bits/stdc++.h> using namespace std; string s1="hello"; int main() { string s; cin>>s; int j=0; for(int i=0; i<s.size(); i++) { if(s[i]==s1[j]) { j++; if(j==5) { cout<<"YES"; return 0; } } } cout<<"NO"; }