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