← All problemsSign in

QUESTION 5

The map of the town of Helinski can be viewed on the infinite coordinate plane, Every point on the Cartesian plane with integer co-ordinates contains a house, and there are streets connecting every house to 4 neighboring houses. All the streets are parallel to the coordinate axes. The main school of the town is located at (sx,sy) . There are n students attending this school, the i-th of them live

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