Badminton
CodeChefOpen on judge ↗
Sameer and Tanya are playing badminton in Aibaan, one of the hostels in the campus. The first to reach 11 points (no deuce) wins. Their game goes on for $N$ rallies. The result of each rally will be given as $A_1, A_2, \dots, A_N$. $A_i = 0$ means that Sameer has won that rally, and $A_i = 1$ means that Tanya has. Since they are highly competitive, they would like to focus on the game. You have t
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