递归法 class Solution { public: int rectCover(int number) { if(number<2) return number; int res; generate(number, res); return res; } void generate(int number, int &res){ if(number==0){ res++; return; } i...