Zombie Attack!
CodeChefOpen on judge ↗
The zombie apocalypse has begun! You have barricaded yourself in a house of strength $s$. You have a revolver that accepts $6$ bullets and there are $k$ zombies approaching your house. The zombies approach one at a time, only one in each turn. In each of the $k$ turns, you can: - Shoot the currently approaching zombie which kills it and uses up $1$ bullet from your gun - Repair your house (if it
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