Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/ABC-problem/Oforth/abc-problem.fth
Normal file
14
Task/ABC-problem/Oforth/abc-problem.fth
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import: mapping
|
||||
|
||||
["BO","XK","DQ","CP","NA","GT","RE","TG","QD","FS","JW","HU","VI","AN","OB","ER","FS","LY","PC","ZM"]
|
||||
const: ABCBlocks
|
||||
|
||||
: canMakeWord(w, blocks)
|
||||
| i |
|
||||
w empty? ifTrue: [ true return ]
|
||||
blocks size loop: i [
|
||||
w first >upper blocks at(i) include? ifFalse: [ continue ]
|
||||
canMakeWord( w right( w size 1- ), blocks del(i, i) ) ifTrue: [ true return ]
|
||||
]
|
||||
false
|
||||
;
|
||||
Loading…
Add table
Add a link
Reference in a new issue