Badminton Strings
CodeChefOpen on judge ↗
Illisha and Vaibhav are playing a badminton match, in a best of 3 sets format. The player who gets to $21$ points first wins a set. In case the score is $20-20$, the first player to achieve a lead of two points wins. After the match, you see the referee's scoresheet to find that he has not written the final score but rather a sequence of characters, the $i^{th}$ of which indicates who won the $
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