class Solution {
public:
int jumpFloorII(int number) {
int re=0;
if(number<=0)
return 0;
if(number==1)
return 1;
else
{
while(number>1)
{
re=re+jumpFloorII(number-1);
number--;
}
return re+1;
}
}
};
public:
int jumpFloorII(int number) {
int re=0;
if(number<=0)
return 0;
if(number==1)
return 1;
else
{
while(number>1)
{
re=re+jumpFloorII(number-1);
number--;
}
return re+1;
}
}
};