Aladdin in a Magical Cave
CodeChefOpen on judge ↗
Aladdin entered a Magical Cave. There, he found two different creatures. One was Genie, which had power of giving Alice some magic stones. Other was Razoul, who doesn't like Aladdin at all and always wants to steal few magic stones from Alice. Both Genie and Razoul have a set of distinct **non-negative** integers with them such that there is no such integer which is common to both the sets. Genie
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