题解 | #牛牛的替换#

牛牛的替换

https://www.nowcoder.com/practice/f2a107dbb99243798d3048a672e8f747

str1=input().split()
str2=input()
n=str1[0]
a1=str1[1]
a2=str1[2]
a3=str1[3]
a4=str1[4]
str2=str2.replace(a1,a2)
str2=str2.replace(a3,a4)
print(str2)

全部评论

相关推荐

10-02 19:29
已编辑
浙江科技大学 运营
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务