class Solution { public: int jumpFloor(int number) { int a = 1,b = 1; for(int i=2; i<=number;i++) { int tmp = b; b += a; a = tmp; } return b; } };