Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100656 杨宸熙 如何得到"hello" C++ Accepted 1 MS 276 KB 344 2024-12-09 20:16:43

Tests(20/20):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char st[1500],st2[6]="hello"; cin>>st; int a=0,b; b=strlen(st); for(int i=0;i<b;i++){ if(st[i]==st2[a]){ a++; } } if(a==5){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }