Day 8
[advent-of-code-2021.git] / day08 / notes.txt
1 0: 6 segments lit: abcefg
2   aaaa
3  b    c
4  b    c
5   ....
6  e    f
7  e    f
8   gggg
9
10 1: 2 segments lit: cf
11   ....
12  .    c
13  .    c
14   ....
15  .    f
16  .    f
17   ....
18
19 2: 5 segments lit: acdeg
20   aaaa
21  .    c
22  .    c
23   dddd
24  e    .
25  e    .
26   gggg
27
28 3: 5 segments lit: acdfg -> 7+dg
29   aaaa
30  .    c
31  .    c
32   dddd
33  .    f
34  .    f
35   gggg
36
37 4: 4 segments lit: bcdf -> 1+bd
38   ....
39  b    c
40  b    c
41   dddd
42  .    f
43  .    f
44   ....
45
46 5: 5 segments lit: abdfg
47   aaaa
48  b    .
49  b    .
50   dddd
51  .    f
52  .    f
53   gggg
54
55 6: 6 segments lit: abdefg
56   aaaa
57  b    .
58  b    .
59   dddd
60  e    f
61  e    f
62   gggg
63
64 7: 3 segments lit: acf -> 1+a <-- this means we can work out a
65   aaaa
66  .    c
67  .    c
68   ....
69  .    f
70  .    f
71   ....
72
73 8: 7 segments lit: abcdefg
74   aaaa
75  b    c
76  b    c
77   dddd
78  e    f
79  e    f
80   gggg
81
82 9: 6 segments lit: abcdfg
83   aaaa
84  b    c
85  b    c
86   dddd
87  .    f
88  .    f
89   gggg
90
91 0: abc efg -> 1 + 2 + 4 + 16 + 32 + 64       -> 119
92 1:   c  f  -> 4 + 32                         -> 36
93 2: a cde g -> 1 + 4 + 8 + 16 + 64            -> 93
94 3: a cd fg -> 1 + 4 + 8 + 32 + 64            -> 109
95 4:  bcd f  -> 2 + 4 + 8 + 32                 -> 46
96 5: ab d fg -> 1 + 2 + 8 + 32 + 64            -> 107
97 6: ab defg -> 1 + 2 + 8 + 16 + 32 + 64       -> 123
98 7: a c  f  -> 1 + 4 + 32                     -> 37
99 8: abcdefg -> 1 + 2 + 4 + 8 + 16 + 32 + 64   -> 127
100 9: abcd fg -> 1 + 2 + 4 + 8 + 32 + 64        -> 111
101
102 a: 8
103 b: 6
104 c: 8
105 d: 7 - only one that's exactly a 7 count
106 e: 4 - only one that's exactly a 4 count
107 f: 9 - only one that's exactly a 9 count
108 g: 7
109