参考:https://www.acwing.com/solution/acwing/content/2163/
class Solution { public: int jumpFloor(int number) { int res; if(number ==1 ) res = 1; if(number ==2) res = 2; if(number > 2) res = jumpFloor(number-1) +jumpFloor(number-2); return res; } };