Ant Colony
CodeChefOpen on judge ↗
In an ants' colony spread over a flat surface, the ants can reside at integral coordinates as close as unit distance apart from each other (but no closer). The colony has the shape of a quadrilateral **ABCD** where one ant must reside at each of **A**, **B**, **C**, and **D**, and all other ants can be on any integral coordinate on its perimeter and its interior. Given the integral positions of **
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