-->
当前位置:首页 > 题库

PROGRAMMING:Delete substrings from a string

Luz5年前 (2021-05-10)题库430
Input two strings S1 and S2 to delete all the sub strings S2 in the string S1, that is, S2 cannot be included in the result string.
###Input format:
Input two non empty strings with length no more than 80 characters and ending with carriage return in two lines, corresponding to S1 and S2.
###Output format:
Output the result string after deleting all the substrings S2 in string S1 in one line.
###Input example:
```in
Tomcat is a male ccatat
cat
```
###Output example:
```out
Tom is a male
```






answer:If there is no answer, please comment