题解 | #统计每个月兔子的总数#
统计每个月兔子的总数
http://www.nowcoder.com/practice/1221ec77125d4370833fd3ad5ba72395
def f(n):
if n <= 2:
return 1
else:
return f(n-1)+f(n-2)
while True:
try:
n=int(input())
print(f(n))
except:
break