No testdata at current.
递归函数配对
int f(int x){
if(x<=3){
return 1;
}
return x*f(x-1);
}
// x>=y
int f(int x,int y){
if(x==y){
return x;
}
return x*f(x-1,y);
}
int f(int x){
if(x==1||x==2){
return x;
}
return f(x-1)+2*f(x-2);
}
x+(x−1)+(x−2)+…+y
f(x)=⎩⎨⎧1x=12x=2f(x−1)+2∗f(x−2) x>2
x×(x−1)×(x−2)×…×4