Submit solution
Points:
100.00 (partial)
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Problem type
Allowed languages
C++, Pascal, Python
In case the statement didn't load correctly, you can download the statement here: Statement
Comments
def doixau(s, list1): s = list(s)
for i, j, c1, c2 in list1: for k in range(i, j+1): if s[k] == c1: s[k] = c2 return "".join(s)
s = input().strip() m = int(input().strip()) list1 = [tuple(input().split()) for _ in range(m)] list1 = [(int(i), int(j), c1, c2) for i, j, c1, c2 in list1] print(doixau(s,list1))
ngôn ngữ gì vậy
Quá thời gian từ test thứ 9 trở đi
vậy là tốt rồi, tôi quá thời gian từ 4 trở đi T_T
nig
tui quá từ test 9
cho xin code
hehehe
Bn nào biết tối ưu python 80/100 ko giúp mình với
bạn thử dùng pypy đi, có thể sẽ hết TLE
cứu
bài này khó quá
Có ai bị lỗi chữ a thành ký tự ? trong tam giác k