Segment Tree Assignment is too slow

Revision en2, by SAT2020, 2023-03-13 22:40:36

Hi everyone,

I've been trying to solve this problem for a while, but keep getting TLE.

The problem requires a range-assignment segment tree, which I copied almost exactly from CP Algorithms.

And yet I keep getting TLE. Can anyone please help? This is my most recent submission,

Thank you,

  • Simon

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English SAT2020 2023-03-13 22:40:36 2 Tiny change: 'ank you,\n- Simon' -> 'ank you,\n\n- Simon'
en1 English SAT2020 2023-03-13 22:39:51 539 Initial revision (published)