← All problemsSign in

Killer Bee

Killer Bee There are N bees. The damage of i th bee is Ai your healing power is X. Your initial health is H. Whenever a bees stings, you receive a damage of Ai - X. Bees can attack you infinite number of times. Find the minimum number of bees required to kill you print "-1" if it is not possible .You will die only if your health is exactly 0. Input - The input contains three integers N, H, X.

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