还是得看大佬的题解,灵感来自斐波那契数列
import sys

for month in sys.stdin:
#小于3个月每个月都是1只,大于等于3个月走else
    if int(month)<3:
        print(str(1))
    else:
        #斐波那契数列,当前数等于前两个数之和,显然递归函数我不太会
        total_list =[1,1]
        for i in range(int(month)-2):
            total_list.append(total_list[-1]+total_list[-2])
        print(total_list[-1])