Count the Apples
CodeChefOpen on judge ↗
Problem description. Dream Lord Morpheus owns an apple orchard. There are N apple trees in the orchard numbering 1 to N. Morpheus in recent busy designing the 'dreams' so he needed a keeper of the orchard who could maintain the count of apples and inform on instantly about them. He picks you for the job and offers a handsome pay. You happily agree. Puck, the servant of Morpheus, is very clever a
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