Problem about Segment Tree

Revision en3, by hmmmm_1, 2017-05-14 13:15:45

Problem statement: https://www.codechef.com/problems/MLCHEF

  • I using Segment Tree lazy propagation : each node has :
  • minhealth : the minimum health of chef has id [L; R]
  • Count : the numer of old chef has id [L; R]
  • poison : the number of poisonous that the chef has id [L; R] receive
  • I tried to solve it but got WA, I create 1000 tests to check my code using the code got AC in internet but I can't find what went wrong!

  • My code : Link Please help me! Thanks a lot :)
Tags codechef, segment tree, mlchef

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English hmmmm_1 2017-05-14 13:15:45 20
en2 English hmmmm_1 2017-05-14 13:14:14 0 (published)
en1 English hmmmm_1 2017-05-14 13:13:48 536 Initial revision (saved to drafts)