Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Subleq/Zkl/subleq-1.zkl
Normal file
9
Task/Subleq/Zkl/subleq-1.zkl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fcn subleq(a,a1,a2,etc){ a=vm.arglist.copy();
|
||||
i:=0;
|
||||
while(i>=0){ A,B,C:=a[i,3];
|
||||
if(A==-1) a[B]=ask("::").toInt(); // or File.stdin.read(1)[0] // int
|
||||
else if(B==-1) print(a[A].toChar());
|
||||
else if( (a[B]-=a[A]) <=0) { i=C; continue; }
|
||||
i+=3;
|
||||
}
|
||||
}
|
||||
3
Task/Subleq/Zkl/subleq-2.zkl
Normal file
3
Task/Subleq/Zkl/subleq-2.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
subleq(15, 17, -1, 17, -1, -1, 16, 1, -1, 16, 3, -1, 15, 15,
|
||||
0, 0, -1, 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108,
|
||||
100, 33, 10, 0);
|
||||
Loading…
Add table
Add a link
Reference in a new issue