-- 7 Billion Humans (2144) --
-- Level 54: Terrain Leveler --
-- Shortest Program: 25 Commands --
-- Fastest Program: 86 Seconds --
a:
step n
if c != datacube:
jump a
endif
b:
if n != wall:
mem1 = calc mem1 + c
step n
jump b
endif
c:
if sw == datacube or
w == worker:
jump c
endif
mem1 = calc mem1 + sw
pickup s
if e == worker:
write mem1
step s
d:
if ne == worker or
e != datacube:
jump d
endif
mem1 = set e
else:
mem1 = calc mem1 / 49
e:
step s
endif
write mem1
drop
if s == datacube:
pickup s
jump e
endif