naruto_returns's blog

By naruto_returns, history, 3 years ago, In English

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

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it