卡了一下输入,其他就是常规写法 n,m = map(int, input().split()) s = input() ss = [] for i in s: ss.append(i) for i in range(m): l,r,ch1,ch2 = input().split() &nbs...