Finding Ranks
CodeChefOpen on judge ↗
Ram is putting pins on graph on integer coordinates and giving ranks to the pins. All the pins are having $x \geq 0$ and $y \geq 0$ . Lets us denote that the rank given to $k^{th}$ pin is $R_k$ having coordinate $x_k$ and $y_k$. For any two coins i , j: if ($x_i + y_i$) Given U , V: write the rank of pin at (U,V) (given that U and V will both be an integer). Input: - First line will
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