#214. 递归实现字符串字符替换

    ID: 214 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-2gesp5递归字符串

递归实现字符串字符替换

Recursive Character Replacement

Background

Congcong is currently learning about string manipulation. He encountered an interesting task that requires replacing specific characters within a string.

Problem Description

Given a string, compute recursively (no loops allowed) a new string where all the lowercase 'x' characters have been changed to lowercase 'y' characters.

Input Format

Input is given from standard input in the following format.

A string.

Output Format

Output is printed to standard output in the following format.

The modified string.

Sample

codex
"codey"
xxhixx
"yyhiyy"
xhixhix
"yhiyhiy"

Sample Explanation

For the first sample input "codex\