Censoring
比赛主页
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 128 M,其他语言256 M
64bit IO Format: %lld
题目描述
给出两个字符串S和T,每次从前往后找到S的一个子串A=T并将其删除,空缺位依次向前补齐,重复上述操作多次,直到S串中不含T串。输出最终的S串。
输入描述:
第一行包含一个字符串S,第二行包含一个字符串T。
输出描述:
输出处理后的S串。
示例1
输入
复制
whatthemomooofun moo
whatthemomooofun moo
输出
复制
whatthefun
whatthefun
备注:
对于全部数据,
,保证字符串中只出现小写字母。
Censoring
返回全部题目
列表加载中...
whatthemomooofun moo
whatthefun