Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
templates q
|
||||
def outputFrom: $(1);
|
||||
def until: $(2);
|
||||
@: [1,1];
|
||||
1..$until -> #
|
||||
when <$@::length~..> do
|
||||
..|@: $@($ - $@($ - 1)) + $@($ - $@($ - 2));
|
||||
$ -> #
|
||||
when <$outputFrom..> do
|
||||
$@($) !
|
||||
end q
|
||||
|
||||
[1,10] -> q -> '$; ' -> !OUT::write
|
||||
'
|
||||
' -> !OUT::write
|
||||
|
||||
[1000,1000] -> q -> '$;
|
||||
' -> !OUT::write
|
||||
|
||||
templates countDownSteps
|
||||
@: 0;
|
||||
def qs: $;
|
||||
2..$qs::length -> #
|
||||
$@ !
|
||||
when <?($qs($) <..~$qs($-1)>)> do @: $@ + 1;
|
||||
end countDownSteps
|
||||
|
||||
[[1, 100000] -> q] -> countDownSteps -> 'Less than previous $; times' -> !OUT::write
|
||||
Loading…
Add table
Add a link
Reference in a new issue