Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110710 吴梓玄 如何得到"hello" C++ Accepted 1 MS 280 KB 267 2025-02-22 17:31:38

Tests(20/20):


Code:

#include <bits/stdc++.h> using namespace std; int main() { string s,ss="hello"; cin>>s; int a=s.size(); int t=0; for(int i=0;i<a;i++){ if (s[i]==ss[t]){ t=t+1; } } if(t==5){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }