Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Square-but-not-cube/MiniScript/square-but-not-cube.mini
Normal file
16
Task/Square-but-not-cube/MiniScript/square-but-not-cube.mini
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
squares = []
|
||||
tris = []
|
||||
both = []
|
||||
for i in range(1, 100)
|
||||
tris.push i*i*i
|
||||
if tris.indexOf(i*i) == null then
|
||||
squares.push i*i
|
||||
else
|
||||
both.push i*i
|
||||
end if
|
||||
end for
|
||||
|
||||
print "Square but not cube:"
|
||||
print squares[:30]
|
||||
print "Both square and cube:"
|
||||
print both[:3]
|
||||
Loading…
Add table
Add a link
Reference in a new issue