/** * * @param number int整型 * @return int整型 */ int jumpFloor(int number ) { // write code here int ans; if(number == 1) ans = 1; if(number == 2) ans = 2; if(number > 2) ans = jumpFloor(number - 1) + jumpFloor(number -2); return ans; }