Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141078 赵乘浩 年龄问题 Python3 Accepted 30 MS 3724 KB 193 2025-12-21 09:53:45

Tests(1/1):


Code:

def calculate_age(n): if n==1: return 10 else: previous_age=calculate_age(n-1) return previous_age+2 fifth_cild_age=calculate_age(5) print(fifth_cild_age)