Data update
This commit is contained in:
parent
07c7092a52
commit
61b93a2cd1
313 changed files with 6160 additions and 346 deletions
8
Task/ABC-problem/Insitux/abc-problem.insitux
Normal file
8
Task/ABC-problem/Insitux/abc-problem.insitux
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(var find-idx #(when (let found (find % %1)) (idx %1 found)))
|
||||
(function in-block? c (when (let block-idx (find-idx (substr? (upper-case c)) rem-blocks)) (var! rem-blocks drop block-idx)))
|
||||
|
||||
(function can-make-word word
|
||||
(var rem-blocks ["BO" "XK" "DQ" "CP" "NA" "GT" "RE" "TG" "QD" "FS" "JW" "HU" "VI" "AN" "OB" "ER" "FS" "LY" "PC" "ZM"])
|
||||
(.. and (map in-block? word)))
|
||||
|
||||
(join ", " (map #(str % " => " (can-make-word %)) ["A" "bark" "Book" "TREAT" "Common" "squaD" "CoNFuSe"])) ; Notice case insensitivity
|
||||
Loading…
Add table
Add a link
Reference in a new issue