RosettaCodeData/Task/McNuggets-problem/11l/mcnuggets-problem.11l
2023-07-01 13:44:08 -04:00

7 lines
200 B
Text

V nuggets = Set(0..100)
L(s, n, t) cart_product(0 .. 100 I/ 6,
0 .. 100 I/ 9,
0 .. 100 I/ 20)
nuggets.discard(6*s + 9*n + 20*t)
print(max(nuggets))