Don't know why getting WA in problem 296C (Greg and Array)

Revision en1, by Ttube_lightT, 2021-06-16 08:41:21

Problem: 296C - Greg and Array Submission using two segment trees: 119576218

Here, the operations are range updates on the given array by some value. So, I thought of segment tree with lazy propagation. The operations are indexed and the operations within a range of indices are repeated, for which I kept another segment tree with lazy propagation.

I couldn't figure out why the solution is getting WA on test 11. Any help is appreciated.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ttube_lightT 2021-06-16 08:41:21 510 Initial revision (published)