题解 | #字符串操作#

字符串操作

http://www.nowcoder.com/practice/06a5336b64e3481fbbcc1f7d5cba548d

m, n = map(int, input().split()) str_use = list(input()) for j in range(n): a, b, c, d = input().split() for j in range(int(a)-1,int(b)): if str_use[j]==c: str_use[j]=d print(''.join(str_use))

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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