CodePudding user response:
PoorFor
Method
CodePudding user response:
Demolish scores can be repeated?CodePudding user response:
You can, it has no limitCodePudding user response:
Int nsplit (int n, int k)
{
Int I, r;
If (n & lt; 1 | | k & lt; 1 | | n & lt; K) return 0;
If (n==k | | k==1) return 1;
If (k==2) return n/2;
For (I=1, r=0; i <=k; I++) r +=nsplit (n - k, I);
return r;
}
Nsplit (198, 4)=54722 program
CodePudding user response: