Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Rep-string/11l/rep-string.11l
Normal file
18
Task/Rep-string/11l/rep-string.11l
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
F reps(text)
|
||||
R (1 .< 1 + text.len I/ 2).filter(x -> @text.starts_with(@text[x..])).map(x -> @text[0 .< x])
|
||||
|
||||
V matchstr =
|
||||
|‘1001110011
|
||||
1110111011
|
||||
0010010010
|
||||
1010101010
|
||||
1111111111
|
||||
0100101101
|
||||
0100100
|
||||
101
|
||||
11
|
||||
00
|
||||
1’
|
||||
|
||||
L(line) matchstr.split("\n")
|
||||
print(‘'#.' has reps #.’.format(line, reps(line)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue