Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35091 additions and 3239 deletions
11
Task/Square-but-not-cube/ABC/square-but-not-cube.abc
Normal file
11
Task/Square-but-not-cube/ABC/square-but-not-cube.abc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
PUT 1 IN square.root
|
||||
PUT 1 IN cube.root
|
||||
PUT 30 IN amount
|
||||
|
||||
WHILE amount > 0:
|
||||
WHILE square.root ** 2 > cube.root ** 3:
|
||||
PUT cube.root + 1 IN cube.root
|
||||
IF square.root ** 2 <> cube.root ** 3:
|
||||
WRITE square.root ** 2/
|
||||
PUT amount - 1 IN amount
|
||||
PUT square.root + 1 IN square.root
|
||||
Loading…
Add table
Add a link
Reference in a new issue