HARRY POTTER AND HIS MAGICIANS
CodeChefOpen on judge ↗
Harry Potter is making a team of magicians to fight against Voldemort. Each magician is assigned a rank. More the rank more is the power. Higher rank implies more power. Due to some rules of Hogwarts, Harry can't randomly change the rank assigned to a magician. But, Harry can either add or subtract k from it. The only rule is that you have to cast the spell on each magician by either adding or su
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