Escape Plan
CodeChefOpen on judge ↗
Dogesh and his entire kingdom live in a castle. Many times, they have received war threats from their neighborhood kingdom were monkeys live. To save his life and his kingdom he asks his friend, Cheems for help. Cheems suggests to construct some tunnels in the Warfield which opens up on the opposite side of the castle. Assume that castle of Dogesh lies on the line represented as $y=mx+c$ and a se
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