← All problemsSign in

Winter Is Here

CodeChefRating 2714Open on judge ↗

**Winter is here** and so are the white walkers. The war against white walker is going on a 2-D plane. Jon Snow, the heir to the Iron Throne is standing at $(0,0)$ on the plane. $N$ white walkers are coming towards the wall to attack the night's watch. Currently each white walker is at a fixed point $(x_i, y_i)$ on the 2-D plane. Horizontal distance between two points $(x_1,y_1)$

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