标签:turn rect div desc 编程 subject ret tle ++
class Solution { public: int rectCover(int number) { vector<int>vt; vt.push_back(1); vt.push_back(2); for(int i=2; i<number; i++) { vt.push_back(vt[i-1]+vt[i-2]); } return vt[number-1]; } };
标签:turn rect div desc 编程 subject ret tle ++
原文地址:https://www.cnblogs.com/grglym/p/8919746.html