正版答案(布尔熊特供)

王百琛  •  10个月前


#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";
}
}
 


评论:

6666666666666666666666666666666666666666666666666666666666666666666666


朱子相  •  10个月前

#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;a[i] != '\0';i++){
if(a[i] == b[count]){
count++;
}
}
if(count == 5){
cout<<"YES";
}else{
cout<<"NO";
}
}
 


王百琛  •  10个月前

6


张皓睿  •  10个月前

#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"; 


 


朱子相  •  10个月前

yue~


王冠中  •  10个月前

666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666


刘昊炜  •  10个月前