McNuggets problem: Difference between revisions
Add SETL
(Added various BASIC dialects) |
Not a robot (talk | contribs) (Add SETL) |
||
Line 2,361:
g(6, 15, 1) = -1
</pre>
=={{header|SETL}}==
<syntaxhighlight lang="setl">program mcnuggets;
nuggets := +/+/ {{{ x + y + z
: x in [0, 6..100] }
: y in [0, 9..100] }
: z in [0, 20..100] };
print(max/{n : n in [1..100] | not n in nuggets});
end program;</syntaxhighlight>
{{out}}
<pre>43</pre>
=={{header|Swift}}==
|