Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/ABC-problem/Quackery/abc-problem-1.quackery
Normal file
20
Task/ABC-problem/Quackery/abc-problem-1.quackery
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[ $ "BOXKDQCPNAGTRETGQDFS"
|
||||
$ "JWHUVIANOBERFSLYPCZM"
|
||||
join ] constant is blocks ( --> $ )
|
||||
|
||||
[ -2 &
|
||||
tuck pluck drop
|
||||
swap pluck drop ] is remove2 ( $ n --> $ )
|
||||
|
||||
[ iff [ say "True" ]
|
||||
else [ say "False" ] ] is echotruth ( b --> )
|
||||
|
||||
[ true blocks rot
|
||||
witheach
|
||||
[ upper over find
|
||||
2dup swap found
|
||||
iff remove2
|
||||
else
|
||||
[ drop dip not
|
||||
conclude ] ]
|
||||
drop echotruth ] is can_make_word ( $ --> )
|
||||
52
Task/ABC-problem/Quackery/abc-problem-2.quackery
Normal file
52
Task/ABC-problem/Quackery/abc-problem-2.quackery
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
[ ' [ 0 ] swap
|
||||
witheach
|
||||
[ over -1 peek
|
||||
+ join ]
|
||||
behead drop ] is accumulate ( [ --> [ )
|
||||
|
||||
[ [] swap
|
||||
witheach
|
||||
[ swap dip
|
||||
[ over + ]
|
||||
swap join ]
|
||||
nip ] is add ( n [ --> [ )
|
||||
|
||||
[ [] unrot
|
||||
[ 2dup find
|
||||
2dup swap
|
||||
found while
|
||||
1+ split
|
||||
swap size
|
||||
dip rot join
|
||||
unrot again ]
|
||||
2drop drop
|
||||
accumulate
|
||||
-1 swap add ] is findall ( x [ --> [ )
|
||||
|
||||
[ iff [ say "True" ]
|
||||
else [ say "False" ] ] is echotruth ( b --> )
|
||||
|
||||
[ $ "BOXKDQCPNAGTRETGQDFS"
|
||||
$ "JWHUVIANOBERFSLYPCZM"
|
||||
join ] constant is blocks ( --> $ )
|
||||
|
||||
[ -2 &
|
||||
tuck pluck drop
|
||||
swap pluck drop ] is remove2 ( $ n --> $ )
|
||||
|
||||
forward is (abc)
|
||||
|
||||
[ dup [] = if bail
|
||||
behead upper
|
||||
dip over swap findall
|
||||
witheach
|
||||
[ dip over
|
||||
remove2
|
||||
over (abc) ]
|
||||
2drop ] resolves (abc) ( $ $ --> )
|
||||
|
||||
[ blocks swap
|
||||
2 backup (abc)
|
||||
bailed dup
|
||||
if [ dip 2drop ]
|
||||
echotruth ] is can_make_word ( $ --> )
|
||||
Loading…
Add table
Add a link
Reference in a new issue