题解(求大佬点评)

唐安轩  •  3个月前


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


评论:

666


王煜鑫  •  3个月前

完美

 


高楷伦  •  5天前