Amazing Apples
CodeChefOpen on judge ↗
Scientists in Japan have genetically modified an incredible apple. Each apple can be used to feed one person for one week. Furthermore, the apple trees will take only one week to grow the fruit. An apple tree will start by producing one apple, then one more apple per week. So a tree when first planted, will produce 1 apple, then 2 apples the following week, 3 apples the week after that, and so for
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