传统题 1000ms 256MiB

查找与替换(作业本P55)

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

输入共3行:

第1行是待处理的文本内容

第2行是查找的单词

第3行是替换的单词

通过查找替换操作后,输出处理之后的文本内容

Format

Input

I am a nurse, and she is a nurse, too!

nurse

teacher

Output

I am a teacher, and she is a teacher, too!

Samples

I am a nurse, and she is a nurse, too!
nurse
teacher
I am a teacher, and she is a teacher, too!

Limitation

1s, 1024KiB for each test case.

【2025选修1:字符串基础】

未认领
状态
已结束
题目
14
开始时间
2025-10-14 0:00
截止时间
2025-12-14 23:59
可延期
24 小时