Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
43
Task/Metallic-ratios/Quackery/metallic-ratios.quackery
Normal file
43
Task/Metallic-ratios/Quackery/metallic-ratios.quackery
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[ $ "bigrat.qky" loadfile ] now!
|
||||
|
||||
[ [ table
|
||||
$ "Platinum" $ "Golden"
|
||||
$ "Silver" $ "Bronze"
|
||||
$ "Copper" $ "Nickel"
|
||||
$ "Aluminium" $ "Iron"
|
||||
$ "Tin" $ "Lead" ]
|
||||
do echo$ ] is echoname ( n --> )
|
||||
|
||||
[ temp put
|
||||
' [ 1 1 ]
|
||||
13 times
|
||||
[ dup -1 peek
|
||||
temp share *
|
||||
over -2 peek +
|
||||
join ]
|
||||
temp release ] is task1 ( n --> [ )
|
||||
|
||||
[ temp put
|
||||
' [ 0 1 1 ]
|
||||
[ dup -3 split nip
|
||||
do dip tuck swap
|
||||
32 approx= if done
|
||||
dup -1 peek
|
||||
temp share *
|
||||
over -2 peek +
|
||||
join
|
||||
again ]
|
||||
temp release
|
||||
dup size 3 - swap
|
||||
-3 split nip
|
||||
-1 split drop
|
||||
do swap rot ] is task2 ( n --> n/d n )
|
||||
|
||||
10 times
|
||||
[ i^ echoname cr
|
||||
i^ task1
|
||||
witheach [ echo sp ] cr
|
||||
i^ task2
|
||||
echo sp
|
||||
32 point$ echo$
|
||||
cr cr ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue