Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98975 汪梓墨 小明养猪的故事 Python3 Wrong Answer 36 MS 3756 KB 115 2024-11-23 20:25:33

Tests(0/1):


Code:

n = int(input()) def a(n): if n <= 2: return 1 else: return a(n-1)+a(n-2) print(a(n))


Run Info:

------Input------
17 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
------Answer-----
1 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765
------Your output-----
1597