← All problemsSign in

Embedding

CodeChefRating 3675Open on judge ↗

You have N points, numbered from 1 to N. You have to position these N points on the Cartesian plane. You have to decide the coordinates of the points. But there are some restrictions. Firstly, the coordinates should be integers, at least 1 and at most 4000, thus you can put a point only on a lattice point. Secondly, every point must have distinct coordinates. After the points are positioned on t

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