Killing Vampires
CodeChefOpen on judge ↗
In Mystic Falls , its citizens are afraid of vampires as vampires feed on people . Sheriff forbes has some amount of Vervain in order to kill them . Ages of vampires are given in centuries . To kill a vampire amount of Vervain required is ¼ of its age . If amount of vervain required is sufficient to kill all the vampires print “enough” else print “not enough” and also output additional amount o
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