Type: Default 1000ms 256MiB

C++-字符串-单词替换

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

单词替换。 输入一个字符串,以回车结束(字符串长度<=100)。该字符串由若干个单词组成,单词之间用空格隔开,所有单词区分大小写。现需要将其中的某个单词替换成另一个单词,并输出替换之后的字符串。 image

Format

Input

Output

Samples

I love apples and often eat apples
apples
bananas
I love bananas and often eat bananas

Limitation

1s, 1024KiB for each test case.

C++基础知识04(字符与字符数组、字符串)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
11
Start at
2024-5-5 17:00
End at
2024-5-20 17:00
Duration
360 hour(s)
Host
Partic.
7