Rods In The Dark
CodeChefOpen on judge ↗
A rod is fixed on the ground parallel to a wall. On the perpendicular bisector of the rod, in the direction away from the wall there is a point source of light fixed to the ground. Shubham is holding a heavy rod which he wants to keep on the ground. In order to make things look neat, he wants to keeps it in parallel to the wall and the other rod. But the material of this rod is highly reactive. So
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