Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/ABC-problem/Q/abc-problem-1.q
Normal file
7
Task/ABC-problem/Q/abc-problem-1.q
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
BLOCKS:string`BO`XK`DQ`CP`NA`GT`RE`TG`QD`FS`JW`HU`VI`AN`OB`ER`FS`LY`PC`ZM
|
||||
WORDS:string`A`BARK`BOOK`TREAT`COMMON`SQUAD`CONFUSE
|
||||
|
||||
cmw:{[s;b] / [str;blocks]
|
||||
$[0=count s; 1b; / empty string
|
||||
not any found:any each b=s 0; 0b; / cannot proceed
|
||||
any(1_s).z.s/:b(til count b)except/:where found] }
|
||||
2
Task/ABC-problem/Q/abc-problem-2.q
Normal file
2
Task/ABC-problem/Q/abc-problem-2.q
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
q)WORDS cmw\:BLOCKS
|
||||
1101011b
|
||||
2
Task/ABC-problem/Q/abc-problem-3.q
Normal file
2
Task/ABC-problem/Q/abc-problem-3.q
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Words:string`A`bark`BOOK`Treat`COMMON`squad`CONFUSE
|
||||
cmwi:{(`$x), `false`true cmw . upper each(x;y) }
|
||||
8
Task/ABC-problem/Q/abc-problem-4.q
Normal file
8
Task/ABC-problem/Q/abc-problem-4.q
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
q)Words cmwi\:BLOCKS
|
||||
A true
|
||||
bark true
|
||||
BOOK false
|
||||
Treat true
|
||||
COMMON false
|
||||
squad true
|
||||
CONFUSE true
|
||||
Loading…
Add table
Add a link
Reference in a new issue