Get those points
CodeChefOpen on judge ↗
Loki is stuck in the multiverse of madness, there are many timelines, and many of them have some nexus events. He has to play his part and destroy at least $k$ of these nexus events to escape this. Loki has managed to draw all the timelines as lines in the 2-d plane with some starting and ending points to simplify the process. A nexus event is the point of intersection of any two of these lines
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start