← All problemsSign in

Hidden Points

CodeChefRating 3090Open on judge ↗

**This is an interactive task** There is an array $P$ of size $N$ consisting of distinct integer points on a 2D plane. $P$ are initially hidden from you, but you can ask queries to find out information about points in $P$. To be specific, you can ask queries in the form: `? i j` where $1 \le i \lt j \le N$, and you will be provided with the **square** of the Euclidean distance between $P_i$ a

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