Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Middle-three-digits/Bracmat/middle-three-digits.bracmat
Normal file
15
Task/Middle-three-digits/Bracmat/middle-three-digits.bracmat
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
( ( middle3
|
||||
= x p
|
||||
. @(!arg:? [?p:? [(1/2*!p+-3/2) %?x [(1/2*!p+3/2) ?)
|
||||
& !x
|
||||
| !arg
|
||||
( !p:<3&"is too small"
|
||||
| "has even number of digits"
|
||||
)
|
||||
)
|
||||
& 123 12345 1234567 987654321 10001 -10001 -123 -100 100
|
||||
-12345 1 2 -1 -10 2002 -2002 0
|
||||
: ?L
|
||||
& whl'(!L:%?e ?L&out$(middle3$!e))
|
||||
&
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue