Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
12
Task/McNuggets-problem/MiniScript/mcnuggets-problem.mini
Normal file
12
Task/McNuggets-problem/MiniScript/mcnuggets-problem.mini
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
n = range(0, 100)
|
||||
for six in range(0, 100, 6)
|
||||
for nine in range(0, 100, 9)
|
||||
for twenty in range(0, 100, 20)
|
||||
mcnuggets = six + nine + twenty
|
||||
ix = n.indexOf(mcnuggets)
|
||||
if ix != null then n.remove(ix)
|
||||
end for
|
||||
end for
|
||||
end for
|
||||
|
||||
print "The largest non-McNugget number is " + n[-1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue