CF 106137D - Apple Tree

I can write the full editorial, but I need the actual problem statement for Codeforces 106137D - Apple Tree. The title and ID do not uniquely identify a Codeforces problem in the public archive I can verify. The well-known Codeforces problem titled “D.

CF 106137D - Apple Tree

Rating: -
Tags: -
Solve time: 19s
Verified: no

Solution

I can write the full editorial, but I need the actual problem statement for Codeforces 106137D - Apple Tree.

The title and ID do not uniquely identify a Codeforces problem in the public archive I can verify. The well-known Codeforces problem titled “D. Apple Tree” is a different problem, and using that would risk giving you an editorial and solution for the wrong task.

Please paste the statement, input/output sections, or a link to the problem page, and I’ll produce the complete editorial in the requested format with the Python solution, walkthroughs, tests, and edge-case analysis.