Bug loves Geometry
CodeChefOpen on judge ↗
An infinite plane is divided into maximum number of compartments by three non-parallel sticks of infinite length. Then some balls are placed on the plane at t=0. At t =1, they start moving and collision occurs between them. Find the maximum no of collision that can happen at t=infinite. Note that two balls a,b can collide multiple times but it would be counted as a single collision. When a ba
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