Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69888 朱震耀老师 桃子问题 Python3 Accepted 35 MS 3728 KB 194 2024-04-10 21:45:44

Tests(1/1):


Code:

def count_peaches(day, left): if day == 1: return left else: return count_peaches(day - 1, (left + 1) * 2) total_peaches = count_peaches(10, 1) print(total_peaches)