Censor
frog is now a editor to censor so-called sensitive words (敏感詞).
She has a long text p. Her job is relatively simple -- just to find the first occurence of sensitive word w and remove it.
frog repeats over and over again. Help her do the tedious work.
Input
The input consists of multiple tests. For each test:
The first line contains 1 string w. The second line contains 1 string p.
(1≤length of w,p≤5⋅106, w,p consists of only lowercase letter)
Output
For each test, write 1 string which denotes the censored text.
Sample Input
abc
aaabcbc
b
bbb
abc
ab
Sample Output
a
ab
//以上是題目,本人英語差,看到題目後,感覺題目要求是:給出一個敏感字符串A,然後在輸入一個字符串B,在B中如果包含A串,就刪去,
但是Sample Input
abc
aaabcbc
b
bbb
abc
ab
Sample Output
a
ab
他給的這個示例輸入和輸出是什麼意思啊,看不懂,
希望大牛能夠解答,感激不盡,
不知道你明白了沒有,題目意思是 有多重輸入,每個有兩行,第一行是w,第二行是p,將在p中出現的w刪除,將刪除完的p繼續執行這個動作,直到不能刪除為止