#CCFPB02D08. 选择你喜爱的水果
选择你喜爱的水果
描述
程序中保存了七种水果的名字,要求用户输入一个与水果有关的句子。程序在已存储的水果名字中搜索,以判断句子中是否包含七种水果的名称。如果包含,则用词组"Brussels sprouts"替换句子中出现的水果单词,并输出替换后的句子。如果句子中没有出现这些水果的名字,则输出"You must not enjoy fruit.".假设七种水果的名字为:apples, bananas, peaches, cherries, pears, oranges, strawberries.
输入
输入有多行,每行是一个字符串(长度不超过200)。每一行输入中只会有一个水果名称,不会存在一行输入包括多种水果名称或重复水果名称的情况。
输出
如果包含水果单词,则用词组"Brussels sprouts"替换句子中出现的水果单词,并输出替换后的句子。如果句子中没有出现这些水果的名字,则输出"You must not enjoy fruit.".
样例
I really love peaches on my cereal.
I’d rather have a candy bar
apples are wonderful with lunch
I really love Brussels sprouts on my cereal.
You must not enjoy fruit.
Brussels sprouts are wonderful with lunch
Limitation
1s, 1024KiB for each test case.