← All problemsSign in

Bench Rotation

A class has n rows and m benches(columns). The year should be same throughout the program. The school has no holidays on sundays. There are three months which are declared as summer vacations which are March, April and May. The total number of students corresponds to total number of benches. From the second day of school the student who sit roll number wise (Roll no. 1 at 1st row 1st bench and so

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