C++/简单代码/4行:

class Solution {
public:
    int jumpFloor(int number) {
        int res_first = 0, res = 1;
        for (int i = 1; i <= number ; i ++) 
            res = res_first + res, res_first = res - res_first;
        return res;
    }
};