Far from origin
Alex, Bob, and, Chef are standing on the coordinate plane. Chef is standing at the origin (coordinates $(0, 0)$) while the location of Alex and Bob are $(X_1, Y_1)$ and $(X_2, Y_2)$ respectively. Amongst Alex and Bob, find out who is at a farther distance from Chef or determine if both are at the same distance from Chef. ### Input - The first line of input will contain a single integer $T$, deno
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