0offer攒人品,携程笔试
携程笔试,比较简单
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
String data=scanner.nextLine();
String target=scanner.nextLine();
int len=data.length();
for(int i=0;i<len;i++){
int j=0;
while(j<target.length()&&data.charAt(i)==target.charAt(j)){
i++;
j++;
}
if(j==target.length()){
System.out.println(true);
return;
}
}
System.out.println(false);
}
}
#携程#