Win or Lose
CodeChefOpen on judge ↗
Problem Statement There were two friends Tanu and Manu. Both of them were very proud of their wins and kept arguing about who has won most games. Finally, they decided to form a system to track their wins and losses. The data on wins is provided by a binary string. 1 corresponds to Tanu's win and 0 corresponds to Manu's win in that game. Any win contributes to addition of five points to the perso
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