Help Ajay!!
CodeChefOpen on judge ↗
Ajay is weak in Sports. Shivam teases Ajay for not knowing the rules of various games. For all games the last match (**Final Match**) is deciding match for whole game. Shivam asked Ajay to tell who will win Tennis Game played between Player **A** and **B**. Game is given by string **S** which contain **a** if player **A** wins current match and **b** if **B** wins current match. Can you help Aj
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