← All problemsSign in

The Dangerous Hideout

Problem description Alibaba is chasing the Captain of the Thieves through the magic realm of Persia! The Captain has taken refuge in a dangerous area where Alibaba can't follow. So, he waits for him to come out of hiding. The captain initially has H amount of health and A amount of armour. The hiding place has 3 areas, Fire, Air and Water. At any instant, he can live in any of the 3 places - fir

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