Winner Winner Chicken Dinner!
CodeChefOpen on judge ↗
In a solo game of PUBG, **Dynamo** and **Kronten** are the only two people alive. As they are friends, they decide to play a fun game before the zone shrinks completely. There are $N$ guns in a line on the ground. Each gun has $B_i$ number of bullets. It is Dynamo’s turn first. At a particular turn, the player decides to either shoot all the bullets of the gun in the air and pass on the turn to th
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