Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112292 黎瑾萱 如何得到"hello" C++ Wrong Answer 1 MS 284 KB 280 2025-03-09 11:58:00

Tests(13/20):


Code:

#include <bits/stdc++.h> using namespace std; int main() { string a; string b = "hello"; cin>>a; int len = a.size(); int m=0; for(int i=0;i<len;i++){ if(a[i]==b[m]){ m++; } } if(m>=4){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }


Run Info:

------Input------
hell
------Answer-----
NO
------Your output-----
YES