Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100652 杨宸熙 如何得到"hello" C++ Wrong Answer 1 MS 272 KB 508 2024-12-09 20:01:22

Tests(0/20):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char st[1500],a=0,b=0,d=0,f=0,c; cin>>st; c=strlen(st); for(int i=0;i<c;i++){ if(st[i]=='h'){ a++; } if(st[i]=='e'){ b++; } if(st[i]=='l'){ d++; } if(st[i]=='o'){ f++; } } if(a>=1&&b>=1&&d>=2&&f>=1){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }


Run Info:

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