题解 | #矩形覆盖#
矩形覆盖
https://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
# -*- coding:utf-8 -*- class Solution: def rectCover(self, number): # write code here if number<4: return number a,b=2,3 for i in range(4,number+1): ans=a+b a,b=b,ans return ans