Be Happy!
CodeChefOpen on judge ↗
VK and MP are playing a game of matrices. As opposed to traditional matrices, these matrices have variable length rows. Both VK and MP have their matrix which we call as a game matrix. VKs game matrix contains $N$ Rows, $VK_1, VK_2... VK_N$, each of size $VKSize_1, VKSize_2...VKSize_N$ respectively, similarly MPs game matrix has $M$ rows, denoted by $MP_1, MP_2... MP_M$ each of size $MPSize_1, MPS
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