Help needed in Segment Tree with lazy add,lazy set and range query

Правка en1, от ukwho-1, 2025-01-02 22:07:44

Can somebody pls tell me where my code goes wrong i am using a flag variable to distinguish between add and set operation.This is segment tree edu section problem part 4-A it gives wrong answer on test 3.

Problem is Assignment, Addition, and Sum

My Code
Теги segment tree, help, lazy propagation, plshelp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ukwho-1 2025-01-02 22:07:44 4810 Initial revision (published)