题解 | #兔子的数量#
兔子的数量
https://www.nowcoder.com/practice/8783056676de4396b0bf816a3561d62f
def f(n): if n < 3: return n + 1 return f(n - 1) + f(n - 2) n = int(input()) print(f(n))#pyhton#
兔子的数量
https://www.nowcoder.com/practice/8783056676de4396b0bf816a3561d62f
def f(n): if n < 3: return n + 1 return f(n - 1) + f(n - 2) n = int(input()) print(f(n))#pyhton#
相关推荐