import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.nextLine().toLowerCase().trim(); while(sc.hasNext()){ String str=sc.nextLine(); if(str.toLowerCase().contains(s)){ int len=s.length(); for (int i = 0; i < str.length()-len+1; i++) { String s2=str.substring(i,i+len); if(s2.toLowerCase().equals(s))str=str.replace(s2, ""); } } str=str.replace(" ", ""); System.out.println(str); } } }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:644 |
C语言程序设计教程(第三版)课后习题6.6 (C语言代码)浏览:350 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:787 |
文科生的悲哀 (C语言代码)浏览:1401 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:563 |
数组与指针的问题浏览:718 |
简单的事情 (C语言代码)浏览:638 |
矩阵转置 (C语言代码)浏览:783 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:514 |
小九九 (C++代码)简单粗暴,直接输出浏览:665 |