← All problemsSign in

BOOK MY SHOW

$K$ friends are going to watch a newly realeased movie $Miramar$ : $The$ $Snipers$ $Zone$ and they are booking tickets online. The theatre consists of $N$ rows of seats and each row contains $M$ seats where $M$ is odd. The rows are labelled as A B C ... Z ($N$<=26) where row A is nearest to the movie screen. The seats in any row are labelled as 1 2 3 ... $M$. Well, they have

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