Help Me Plz!!!! Question related to segment trees(with two lazy updates)

Правка en2, от naruto_returns, 2020-12-17 18:09:15

Question :- Range Updates and Sums on cses Link The 2nd test case is failing for 45 queries rest (65k queries) are correct. I am not able to find the logical mistake in lazy updates part. Please can you help to solve this

Update:- The Problem was in update part of lazy rest of the code is right.

Non-Working Code
Updated and working code
Теги #segment tree, #lazy propagation, lazy updates

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский naruto_returns 2020-12-17 18:09:15 2708 Tiny change: ' summary="Code">\n\n' -> ' summary="Non-Working Code">\n\n'
en1 Английский naruto_returns 2020-12-16 00:54:33 3848 Initial revision (published)