Potions
CodeChefOpen on judge ↗
Harry got to know about his second task in the Triwizard Tournament by listening to song emitted by the golden egg he won in the first task. Harry would have only one hour to rescue something dear to him that would be held deep beneath the lake at Hogwarts by the merpeople. Harry needs to find a way to stay underwater for one hour. He requests the potions professor of Hogwarts (Professor Snape) t
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