Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129695 杨明 如何得到"hello" C++ Accepted 2 MS 272 KB 391 2025-09-02 10:19:24

Tests(20/20):


Code:

#include<bits/stdc++.h> using namespace std; int main() { //500位 //hello //1 char a[1600]; cin >> a; char b[] = {'h','e','l','l','o'}; int count = 0; for (int i = 0; a[i] ; i++ ) { if (a[i] == b[count]) { count++; } } count == 5 ? cout << "YES" << endl : cout << "NO" << endl; }