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
↵
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