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

class Solution {
public:
    int jumpFloorII(int number) {
        int res = 1;
        for (int i = 2; i <= number; i ++) res *= 2; 
        return res;
    }
};