Segment Tree Assignment is too slow
Difference between en1 and en2, changed 2 character(s)
Hi everyone,↵

I've been trying to solve [this](https://codeforces.me/contest/1557/problem/D) problem for a while, but keep getting TLE.↵

The problem requires a range-assignment segment tree, which I copied almost exactly from [CP Algorithms](https://cp-algorithms.com/data_structures/segment_tree.html#assignment-on-segments).↵

And yet I keep getting TLE. Can anyone please help? [This](https://codeforces.me/contest/1557/submission/197290965) 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)