Helping Harry
CodeChefOpen on judge ↗
Ron & Hermoine have decided to help Harry in his quest to destroy the horcruxes.They have planned to learn all the required spells which would help them in their journey. Most of wonderful spells that exist in the wizarding world have powers in the multiples of 5 & 7.Dumbledore has left Hermione with a fine book of spells containing n distinct spells where ith spell has power i.Harry has to fight
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