Yuri and zombies
CodeChefOpen on judge ↗
Yuri is stuck on an island filled with zombies. There are $N$ zombies, numbered $1$ to $N$, arranged in a row, at a lab in the island. Each zombie i has a health h_i Yuri has a laser gun whose power p changes every second. If yuri shoots a zombie i of health h_i with power p_j then the zombie's health reduces by p_j. At any second if zombie's health becomes <= 0, then the zombie dies at that seco
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