Alternate 1s and 0s
CodeChefOpen on judge ↗
Anit owns a motor racing team but unlike the other team bosses, he does not intend to win all the races despite having one of the best cars on the grid. For some weird reasons, he wants his to team to **win only alternate races**. The team can lose any number of races (even $0$) before its first victory and after its last victory. The championship for which the team is fighting is quite predictab
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