QOJ.ac

QOJ

时间限制: 2 s 内存限制: 1024 MB 总分: 100

#3131. 珍珠奶茶

统计

如今,珍珠奶茶已风靡全球。它们有不同的名称——bubbles、pearls 和 tapioka。人们开始尝试将几乎所有食物与 tapioka 搭配在一起。例如:bubble tea pizza、bubble tea ramen、bubble tea hotpot、bubble tea cake 等等。

给定一道菜的名称,你需要反复移除其中所有的 tapioka 部分,以揭示这道菜的“真面目”。请注意,本题中的菜名恰好由三个单词组成。每道菜的名称总是以“bubble tea”或“tapioka”开头。例如,你可能会看到名为“bubble tea ramen”的菜,但绝不会看到名为“bubble ramen tea”的菜。

输入格式

输入文件包含恰好一组测试数据。输入文件中只有一行,包含一个由三个单词组成的菜名。

输出格式

如果在反复移除所有出现的“bubble”或“tapioka”(作为完整单词)后没有剩余内容,则输出“nothing”。否则,按原始顺序输出剩余的单词,并用空格分隔。

数据范围

  • 在本题中,单词是由小写英文字母组成的字符串。
  • 输入文件中的所有单词均由空格分隔。
  • 每个单词的长度不超过 32。

样例

样例输入 1

bubble tea pizza

样例输出 1

tea pizza

样例输入 2

tapioka cake tapiokas

样例输出 2

cake tapiokas

样例输入 3

tapioka jasmine tea

样例输出 3

jasmine tea

样例输入 4

tapioka bubble tapioka

样例输出 4

nothing

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.