P
Algorithms: Round Won
You are playing a game of badminton consisting of N rounds
with your friend.
If your current score is greater than or equal to your friend's
current score, you serve the round. Else, your friend serves the
round.
The playback of your game is given as a string of N characters.
You are always the first person to serve.
The ith character is “W” if the server of the i-th round won the i-
th round, else the ith character is “L”.
Print your final score and your friend's final score separated by
a space.
Note
Here, score of a player is the number of rounds won by the
player. programming
Answers
Answered by
0
Answer:
N is you ans
Explanation:
Similar questions
Math,
1 month ago
Chemistry,
1 month ago
Social Sciences,
2 months ago
Hindi,
9 months ago
Physics,
9 months ago