Matrix Game
CodeChefOpen on judge ↗
Michael and Trevor are best friends, they love to play with matrices in mathematics, so they decided to play a game. They are having a rectangular matrix in the form of xy-plane. They have $N$ points $(x_i,y_i)$ on which one can go at any instant of time, $1 \leq i \leq N$ . There is one condition to call a pair safe that is one has to maintain some distance from other such that $(x_i - x_j)$ + $(
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