Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Combinations/Perl/combinations-1.pl
Normal file
2
Task/Combinations/Perl/combinations-1.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
use ntheory qw/forcomb/;
|
||||
forcomb { print "@_\n" } 5,3
|
||||
3
Task/Combinations/Perl/combinations-2.pl
Normal file
3
Task/Combinations/Perl/combinations-2.pl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
use Algorithm::Combinatorics qw/combinations/;
|
||||
my @c = combinations( [0..4], 3 );
|
||||
print "@$_\n" for @c;
|
||||
5
Task/Combinations/Perl/combinations-3.pl
Normal file
5
Task/Combinations/Perl/combinations-3.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use Algorithm::Combinatorics qw/combinations/;
|
||||
my $iter = combinations([0..4],3);
|
||||
while (my $c = $iter->next) {
|
||||
print "@$c\n";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue