langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,20 @@
|
|||
#1 = 41 // number of prisoners
|
||||
#2 = 3 // step size
|
||||
#3 = 1 // number of survivors
|
||||
|
||||
Buf_Switch(Buf_Free)
|
||||
for (#5=0; #5<#1; #5++) {
|
||||
Ins_Text("prisoner ") Num_Ins(#5, LEFT)
|
||||
}
|
||||
|
||||
BOF
|
||||
#4=1
|
||||
while (#1 > #3) {
|
||||
if (#4++ % #2 == 0) {
|
||||
Del_Line(1)
|
||||
#1--
|
||||
} else {
|
||||
Line(1)
|
||||
}
|
||||
if (At_EOF) { BOF }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue