MAXIMUM KILLS
CodeChefOpen on judge ↗
You’re given two types of guns – $Shotgun$ and $Dragunov$. You have *$X$* bullets in $Shotgun$ and $Y$ bullets in $Dragunov$. A bullet hit from a $Shotgun$ decreases health of a man by $1$ unit. However, $Dragunov$ kills a man( having any unit of current health) in a single shot, reducing the health to $0$. There are $N$ terrorists assembled in a line. Using $X$ bullets in $Shotgun$ and $Y$ bulle
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