← All problemsSign in

Chocolate Seeds

Chef loves chocolates, but he likes gardening too. Once, on his friend's birthday, he thought of gifting a chocolate plant to his friend. He went to the market and bought $N$ chocolate seeds, for planting the chocolate plants. After planting the seeds, he noticed that the growth of the plants stopped after some days. The Chef thinks it is bad manners to present little chocolate plants. There ar

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