You are viewing a single comment's thread. Return to all comments →
n, m = input().strip().split(' ')
n, m = [int(n), int(m)]
l =  * (n+1)
for a0 in range(m):
a, b, k = input().strip().split(' ')
a, b, k = [int(a), int(b), int(k)]
l[a:b+1] = list(map(lambda x:x+k,l[a:b+1]))
The above code is showing runtime error for test case 7 onwards. please suggest the reason?
I experience the same issue. If I run test case 13 locally, my code passes, but if I try the same code remotely on HR, cases 7 -> 13 all fail. Out of memory ?
why deleted :(
I too tried the same approach. Yes, It's giving runtime error.