Qwan Under Attack
CodeChefOpen on judge ↗
Problem description The Wizard kingdom of Qwan is being attacked by the Elves of Preslay. Since supplies are limited, the king would like to make the minimum use of their super weapon Avada. Avada missiles are launched with the help of a computer system that makes the judgement of the power level of the enemy soldiers and then allows the king to choose which soldiers to kill. Each missile kills 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