Run Jerry Run
CodeChefOpen on judge ↗
Tom being angry with Jerry, decided to catch him. Both are standing on x-axis with Tom's current position as (x1,y1) and Jerry is standing at (x2,y2). Jerry understood Tom's intention and prepared himself for the pursuit, he always runs away from tom. Tom knows Jerry is faster than him but this time Tom is determined and chases Jerry. Input - The first line of the input contains an integer T den
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