comparison 2017/day25/input @ 34:049fb8e56025

Add problem statements and inputs
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Tue, 09 Jan 2018 21:51:44 -0500
parents
children
comparison
equal deleted inserted replaced
33:bc652fa0a645 34:049fb8e56025
1 Begin in state A.
2 Perform a diagnostic checksum after 12656374 steps.
3
4 In state A:
5 If the current value is 0:
6 - Write the value 1.
7 - Move one slot to the right.
8 - Continue with state B.
9 If the current value is 1:
10 - Write the value 0.
11 - Move one slot to the left.
12 - Continue with state C.
13
14 In state B:
15 If the current value is 0:
16 - Write the value 1.
17 - Move one slot to the left.
18 - Continue with state A.
19 If the current value is 1:
20 - Write the value 1.
21 - Move one slot to the left.
22 - Continue with state D.
23
24 In state C:
25 If the current value is 0:
26 - Write the value 1.
27 - Move one slot to the right.
28 - Continue with state D.
29 If the current value is 1:
30 - Write the value 0.
31 - Move one slot to the right.
32 - Continue with state C.
33
34 In state D:
35 If the current value is 0:
36 - Write the value 0.
37 - Move one slot to the left.
38 - Continue with state B.
39 If the current value is 1:
40 - Write the value 0.
41 - Move one slot to the right.
42 - Continue with state E.
43
44 In state E:
45 If the current value is 0:
46 - Write the value 1.
47 - Move one slot to the right.
48 - Continue with state C.
49 If the current value is 1:
50 - Write the value 1.
51 - Move one slot to the left.
52 - Continue with state F.
53
54 In state F:
55 If the current value is 0:
56 - Write the value 1.
57 - Move one slot to the left.
58 - Continue with state E.
59 If the current value is 1:
60 - Write the value 1.
61 - Move one slot to the right.
62 - Continue with state A.