-
Notifications
You must be signed in to change notification settings - Fork 0
/
year13-fast.7bh
72 lines (65 loc) · 1.11 KB
/
year13-fast.7bh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
-- 7 Billion Humans (2215) --
-- 13: Injection Sites 2 --
-- INSTRUCTIONS: "Fill the data gaps in each row."
-- AVAILABLE COMMANDS: step, pickUp, drop, if, jump, comment
-- SIZE: 45 commands (challenge 10, shortest known 9)
-- BEST AVERAGE RUNTIME: 6 seconds (challenge 55, fastest known 5)
-- Proceed directly to a specific hole, which is determined by the
-- worker's initial position.
pickup s
step s
if e != worker:
-- Easternmost worker
step se
step se
else:
if e != worker:
-- 2nd easternmost worker
step se
step se
step se
step se
step se
step s
else:
if e != worker:
-- 3rd easternmost worker
step se
step se
step se
step se
step s
step s
step s
step s
else:
if e != worker:
-- 3rd westernmost worker
step se
step se
step se
step s
step s
step s
step s
step s
else:
if e != worker:
-- 2nd westernmost worker
step se
step s
step s
step s
else:
-- Westernmost worker
step s
step s
step s
step s
endif
endif
endif
endif
endif
drop
-- vim: set autoindent noexpandtab