Help needed Range Updates and Sum CSES

Revision en1, by ngk_manh, 2020-12-05 10:42:05

Hi guy, i am stucking in this problem : https://cses.fi/problemset/task/1735/

Here is my code : https://cses.fi/paste/567abb6bc35edc71146fae/

I have no idea why i got WA. Can anybody explain for me what was wrong in my concept ?

(Sorry because my English:"((( )

Tags #help, #cses, #segment tree, #lazy propagation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ngk_manh 2020-12-05 11:00:47 69
en1 English ngk_manh 2020-12-05 10:42:05 309 Initial revision (published)