The Fight
CodeChefOpen on judge ↗
Sourabh and Rishabh are enemies of each other and want to kill each other. Rishabh has lot of money . So he went to the shop to buy bullets but shopkeeper was a nerd he gave him a string conatining 0's and 1's where 1 refers to unused bullet and 0 refers to bullets that are already used. Rishabh wants to buy as much bullets as he can but he doesnot want to pay for used bullets therefore he wants
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