可变剪接简介
作者:L. Grondin
http://rosalind.info/problems/aspc/
默认输入数据的预期输出
42
源代码: aspc-grondilu.pl
use v6; sub MAIN($n = 6, $m = 3) { my $sum = my $C = ([*] $n-$m+1 .. $n) div [*] 1 .. $m; for $m+1 .. $n -> $k { $sum += $C = $C * ($n - $k + 1) div $k } say $sum % 1_000_000; }