It involved using a Segment Tree.
I knew how to do it.
I couldn’t in the time constraint.
It felt really shitty as it was attached to an outcome.
Someday, I’ll play around CP again. Just for fun. Not today. Maybe next year. Who knows? I feel like I have one last run of CP left in me!