Weapon Choice
Chef is playing a videogame, and is now at a boss fight. The boss has $H$ health. Chef has two weapons with him: - First, a gun that does $X$ damage every hit. - Second, a laser that does $Y_1$ damage every hit. However, after the $K$-th time it's used, the laser's output drops; and it will then do only $Y_2$ damage every hit ($Y_2 \lt Y_1$). Chef must choose **exactly one** of the two wea
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