24 game/Solve: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (Automated syntax highlighting fixup (second round - minor fixes)) |
SqrtNegInf (talk | contribs) m (→Raku: replace odd syntax in 'roundrobin') |
||
Line 7,602:
# Brute force test the different permutations
for @ops -> @o {
for @formats -> $format {
my $result = .EVAL given my $string = sprintf $format,
say "$string = 24" and last if $result and $result == 24;
}
}
}
{{out}}
<pre>
|