RACHIT AND NIGHT TUITION
CodeChefOpen on judge ↗
Rachit lives on the coordinate axis OX at x=a. He has his night tuition classes at x=b. On the axis at point x=c, a road light is placed which has it's radius of coverage as r i.e. from x=c, at a distance less than or equal to r, he will have light on his path, otherwise he has to walk in dark. Print the distance (the total coordinate points) during which Rachit will walk in dark while going fr
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