Undying Indy
CodeChefOpen on judge ↗
Indiana Jones on one of his adventures finds the "Elixir of Immortality". The Elixir makes the drinker immortal and also ageless. But according to the myth, if the elixir is taken in more than the prescribed quantity, the drinker will rapidly grow old and die within seconds. Similarly, on taking it less than the required amount, drinker's age would reverse and would be transformed into a dead bab
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