Problem 1349 · Hard

Maximum Students Taking Exam

Process the hall row by row with a bitmask per row, keeping only seatings that avoid the diagonal views of the row above.

Open the interactive visualisation