Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem2107--Replace the character
2107: Replace the character
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
107
Solved:
15
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
This problem requires replacing all specific characters in a string with the given character, and printing the new string.
Input
Given a string, a character need to be replaced, and a new character.
Output
The new string
Sample Input
Copy
112345 1 6
Sample Output
Copy
662345
Source/Category
151