Triangle Query
You are given $N$ points (numbered $1$ through $N$) in a Cartesian coordinate system. For each valid $i$, the coordinates of the $i$-th point are $(x_i, y_i)$. You should answer $Q$ queries (numbered $1$ through $Q$). For each valid $i$, in the $i$-th query: - You are given two points $L = (l_i, 0)$ and $R = (r_i, 0)$. - Consider an isosceles right triangle such that its hypothenuse is the line s
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