← All problemsSign in

The Cheating Classroom

During a MCQ test, a classroom decided to cheat together. There are in total N x M benches.[N rows M columns]. Each bench has one student. With a total of NxM number of students[No benches are empty]. Now there is only one master cheat sheet in the class with student at bench (0,0). Each student requires 5 min to mark all the answers. After marking all the answers, the student passes the sheet

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