← All problemsSign in

Creature Hunter

CodeChefRating 1477Open on judge ↗

Chef is playing his favorite videogame, *Creature Hunter*. He is now preparing to fight a difficult boss. The boss has $H$ health. Chef has $N$ different weapons available to him: the $i$-th weapon takes $S_i$ ($1 \leq S_i \leq 2$) seconds to charge up, and then does $D_i$ damage to the boss, i.e. its health decreases by $D_i$. The boss is considered to be defeated when its health becomes $\l

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start