标签:otto color bottom margin int ber off 最小数 规律
class Solution { public: int rectCover(int number) { int dp[9999] = {0}; dp[1] = 1; dp[2] = 2; for (int i = 3; i <= number; i++) { dp[i] = dp[i - 1] + dp[i - 2]; } return dp[number]; } };
标签:otto color bottom margin int ber off 最小数 规律
原文地址:https://www.cnblogs.com/ruoh3kou/p/10048344.html