← All problemsSign in

Exam time

Suppose a few students are giving an exam in the examination hall.The supervisor is bored of keeping a watch on the students so as they don't copy. However being a programmer, she has noticed few things. The examination hall is a 2-D grid with M rows and N seats in each row. However students in say ,row 1 are the most mischievous and copy the most,But they don't copy from students of other rows

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start