题解 | #矩形覆盖#
矩形覆盖
https://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
class Solution { public: int rectCover(int number) { int a=0,b=1,c=2; for(int i=0;i<number;i++){ a=b; b=c; c=a+b; } return a; } };
矩形覆盖
https://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
class Solution { public: int rectCover(int number) { int a=0,b=1,c=2; for(int i=0;i<number;i++){ a=b; b=c; c=a+b; } return a; } };
相关推荐