Chocolates and Aliens
CodeChefOpen on judge ↗
An alien from a galaxy far far away has come to Earth to check out the best commodity on Earth - chocolate. The alien, on 29th January, 2013 has N chocolates. On each day, if the number of chocolates is even, he will eat half of the chocolates. If it is odd, he brings more chocolates such that the new number of chocolates is thrice the current number of chocolates plus three. If the number of cho
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