#818. C++-字符串-选择你喜爱的水果

    ID: 818 Type: Default 1000ms 256MiB Tried: 79 Accepted: 30 Difficulty: 5 Uploaded By: Tags>CSP厦门信息学厦门创客大赛C++项目信息科技特长生NOI

C++-字符串-选择你喜爱的水果

Background

Description

选择你喜爱的水果。程序中保存了7种水果的名字,要求用户输入一个与水果有关的句子。程序在已存储的水果名字中搜索,以判断句子中是否包含7种水果的名称。如果包含,则用词组” Pitayas”(火龙果)替换句子中出现的水果单词,并输出替换后的句子。如果句子中没有出现这些水果的名字,则输出”You must not enjoy fruit.”。假设7种水果的名字为:apples, bananas, peaches, cherries, pears, oranges, strawberries。 image

Format

Input

Output

Samples

I like apples.
I like Pitayas.

Limitation

1s, 1024KiB for each test case.