Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82682 刘宇轩 如何得到"hello" C++ Wrong Answer 0 MS 276 KB 507 2024-07-13 14:38:21

Tests(0/20):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char a[1501],b[1501],d[5]; cin>>a; int c=strlen(a); int n; for(int i=0;i<c;i++){ if(a[i]=='h'){ d[0]='h'; } else if(a[i]=='e'){ d[1]='e'; } else if(a[i]=='l'){ d[2]='l'; } else if(a[i]=='l'){ d[3]='l'; } else if(a[i]=='o'){ d[4]='o'; } } if(d[0]=='h'&&d[1]=='e'&&d[2]=='l'&&d[3]=='l'&&d[4]=='o'){ cout<<"YES"; } else{ cout<<"NO"; } return 0; }


Run Info:

------Input------
jkwgburltxdezgcdhduwcpqoadrwnqljfn
------Answer-----
NO
------Your output-----
YES