Insanely Hard School Exams
After failing to clear his school mathematics examination, infinitepro decided to prepare very hard for his upcoming re-exam, starting with the topic he is weakest at ― computational geometry. Being an artist, infinitepro has $C$ pencils (numbered $1$ through $C$); each of them draws with one of $C$ distinct colours. He draws $N$ lines (numbered $1$ through $N$) in a 2D Cartesian coordinate sys
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