【Permutation】
[code]inputs: Num( numericsimple ), NumChosen( numericsimple ) ;condition1 = NumChosen >= 1 and Num >= NumChosen ;
if condition1 then
Permutation = Factorial( Num ) / Factorial( Num - IntPortion( NumChosen ) )
else
Permutation = -1 ;
[/code]
页:
[1]