Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85503 小徐老师 吃巧克力 Python3 Accepted 35 MS 3772 KB 139 2024-07-17 19:14:20

Tests(10/10):


Code:

n = int(input()) def f(x): if x < 0: return 0 if x == 0: return 1 return f(x - 1) + f(x - 2) print(f(n))