Attack Hogwarts
CodeChefOpen on judge ↗
Hogwarts, the magical school, is protected by ancient spells. Hogwarts has different castles(n) well connected through bridges. It is wiling to organise competition amongst four houses to locate the key of every castle and use them to de-code the magical spells. Voldemort wants to disrupt the competition and in turn, attack hogwarts by destroying castles. Now you, being chief programmer in Voldem
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