第三十二年库存报告
(两个解法)16/404
a:
INBOX
COPYTO 15
COPYFROM 14
COPYTO 16
COPYTO 17
b:
COPYFROM [17]
JUMPZ e
SUB 15
JUMPZ d
c:
BUMPUP 17
JUMP b
d:
BUMPUP 16
JUMP c
e:
COPYFROM 16
OUTBOX
JUMP a
30/51
BUMPUP 14
BUMPUP 14
COPYTO 15
BUMPUP 15
COPYTO 16
BUMPUP 16
COPYTO 17
BUMPUP 17
a:
b:
c:
d:
INBOX
COPYTO 18
SUB 0
JUMPZ e
COPYFROM 18
SUB 1
JUMPZ f
COPYFROM 18
SUB 2
JUMPZ g
COPYFROM 14
OUTBOX
JUMP a
e:
COPYFROM 17
OUTBOX
JUMP b
f:
COPYFROM 16
OUTBOX
JUMP c
g:
COPYFROM 15
OUTBOX
JUMP d