McNuggets problem: Difference between revisions
m
→{{header|Perl 6}}: Style tweaks
(→Python - List monad in parallel to comprehension: Pylinted, tidied, updated output, added {Works with} tag) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Style tweaks) |
||
Line 678:
return '∞' if 1 < [gcd] @counts;
my $min =
my @meals;
my @min;
Line 686:
for 0..$b -> $c {
($a, $b, $c).permutations.map: {
for
@meals[ .sum
}
}
|