Help Nikhar!
CodeChefOpen on judge ↗
Nikhar is good in maths and he loves to play with numbers and specially with matrices. Now he is solving a new problem. Nikhar has two $n$ × $m$ matrices $A$ and $B$. He wants to make them completely identical, to achieve this goal, he can perform the following actions in a single move: - Take one of the matrices, either $A$ or $B$. - Choose either one row or one column of the selected matrix. -
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