QOJ.ac

QOJ

حد الوقت: 1 s حد الذاكرة: 1024 MB مجموع النقاط: 100

#3698. 审查

الإحصائيات

frog 现在是一名编辑,负责审查所谓的敏感词。

她有一段很长的文本 $p$。她的工作相对简单——只需找到敏感词 $w$ 的第一次出现并将其删除。

frog 会不断重复这个过程。请帮她完成这项繁琐的工作。

输入格式

输入包含多组测试数据。对于每组测试数据:

第一行包含一个字符串 $w$。 第二行包含一个字符串 $p$。

($1 \leq \text{length of } w, p \leq 5 \cdot 10^6$,且 $w, p$ 仅由小写字母组成)

输出格式

对于每组测试数据,输出一行字符串,表示审查后的文本。

样例

输入格式 1

abc
aaabcbc
b
bbb
abc
ab

输出格式 1

a

ab

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.