The Maze
CodeChefOpen on judge ↗
The champions of the Triwizard tournament finally enters the last task. The task is to navigate a triangular maze grown on the Hogwarts Quidditch pitch and to collect some valuable items. Each participant is given a bag which can store $infinite$ $number$ $of$ $items$ in which the participants have to collect the valuable items. Each valuable item has a value associated with it. The score of each
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