Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67476 屠佳毅 13猴子吃桃 Python3 Accepted 29 MS 3768 KB 160 2024-03-16 16:13:55

Tests(10/10):


Code:

def eat(n): total = 1 for i in range(n-1, 0, -1): total = (total + 1) * 2 return total n=int(input()) peach = eat(n) print(peach)