用两个变量存储结果public class Solution { public int JumpFloorII(int target) { int a = 0; int sum = 1; for(int i = 1; i <= target; i++){ sum = sum + a; a = sum; } return a; }}