第二十八年三排序(两个解法)
34/140
a:
INBOX
COPYTO 0
INBOX
COPYTO 1
INBOX
COPYTO 2
b:
COPYFROM 0
SUB 1
JUMPZ d
JUMPN c
COPYFROM 1
COPYTO 5
COPYFROM 0
COPYTO 1
COPYFROM 5
COPYTO 0
c:
d:
COPYFROM 1
SUB 2
JUMPZ f
JUMPN e
COPYFROM 2
COPYTO 5
COPYFROM 1
COPYTO 2
COPYFROM 5
COPYTO 1
JUMP b
e:
f:
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 2
OUTBOX
JUMP a
58/75
a:
b:
c:
d:
e:
f:
INBOX
COPYTO 0
INBOX
COPYTO 1
SUB 0
JUMPN i
INBOX
COPYTO 2
SUB 0
JUMPN h
COPYFROM 0
OUTBOX
COPYFROM 2
SUB 1
JUMPN g
COPYFROM 1
OUTBOX
COPYFROM 2
OUTBOX
JUMP b
g:
COPYFROM 2
OUTBOX
COPYFROM 1
OUTBOX
JUMP f
h:
COPYFROM 2
OUTBOX
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
JUMP e
i:
INBOX
COPYTO 2
SUB 1
JUMPN k
COPYFROM 1
OUTBOX
COPYFROM 2
SUB 0
JUMPN j
COPYFROM 0
OUTBOX
COPYFROM 2
OUTBOX
JUMP d
j:
COPYFROM 2
OUTBOX
COPYFROM 0
OUTBOX
JUMP a
k:
COPYFROM 2
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 0
OUTBOX
JUMP c