← All problemsSign in

Deathly Hallows and The Cloak Of Invisibility

CodeChefRating 3180Open on judge ↗

Hermione : [reading] "There were once three brothers, who were traveling along a lonely winding road at twilight". After taking the prize for their cleverness from the Death, the Eldest brother(X) and the Second brother(Y) realized that the best choice was made by their youngest brother and hence they decided to kill him and take his cloak of invisibility. But there was only one cloak and 2 broth

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start