← All problemsSign in

The Intersection

Pirates of the Carribean were able to reach the place where the treasure was hidden but are unable to understand the situation. Two metal rods are joined in a “plus shaped” manner. Both the rods has gold balls stuck on them. The treasure is inside two balls. Consider that two rods intersect at point S. You are given horizontal distance of ball from S to be P, and vertical distance to be Q. Clu

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start