McNuggets problem: Difference between revisions
→{{header|PowerShell}}: switch to map for better performance
(→{{header|PowerShell}}: Add implementation) |
(→{{header|PowerShell}}: switch to map for better performance) |
||
Line 968:
=={{header|PowerShell}}==
{{trans|UNIX Shell}}
<lang powershell>$possible = @
For ($i=0; $i -lt 18; $i++) {
For ($j=0; $j -lt 13; $j++) {
For ( $k=0; $k -lt 6; $k++ ) {
$possible
}
}
Line 978:
For ( $n=100; $n -gt 0; $n-- ) {
If ($possible
Continue
}
|