Indian Premiere League 2021
CodeChefOpen on judge ↗
IPL season 14 is going to start from 9th April 2021 and the committee wants to allow spectators but due to COVID, they can't make 2 spectators be seated adjacent to each other. The ground stands have dimensions M x N. The committee wants to know the maximum number of spectators that can be allowed on the ground. Possible seating arrangements can be x . x . . . . . . . x . x . x . . .
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