Thay thế kí tự 1


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Cho xâu $S$ chỉ gồm kí tự latin in thường và dấu cách. Hãy thay thế các kí tự có giá trị $ch1$ thành kí tự $ch2$ trong xâu.

Dữ liệu

  • Dòng đầu tiên chứa xâu $S \ (|S| \le10^5) $;
  • Dòng tiếp theo chứa hai kí tự $ch1,ch2$.

Kết quả

  • Xâu sau khi thay đổi.

Ví dụ

Ví dụ 1

input

this is a pinapple
i *

output

th*s *s a p*napple

Comments

There are no comments at the moment.