Type: Default 1000ms 128MiB

字符替换

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.

描述

把一个字符串中特定的字符全部用给定的字符替换,得到一个新的字符串。

输入

只有一行,由一个字符串和两个字符组成,中间用单个空格隔开。字符串是待替换的字符串,字符串长度小于等于30个字符,且不含空格等空白符; 接下来一个字符为需要被替换的特定字符; 接下来一个字符为用于替换的给定字符。

输出

一行,即替换后的字符串。

样例输入

hello-how-are-you o O

样例输出

hellO-hOw-are-yOu

专题训练之字符串

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2023-8-4 9:30
End at
2023-8-18 23:30
Duration
350 hour(s)
Host
Partic.
14