Skip to content

Commit 1ce1c6c

Browse files
author
José Braga
committed
Day 14, 10
1 parent 53355a3 commit 1ce1c6c

File tree

8 files changed

+426
-1
lines changed

8 files changed

+426
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
**/*~
1313

1414
day05
15+
day11
1516
day12
1617

aoc.code-workspace

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
{
3131
"path": "day09"
3232
},
33+
{
34+
"path": "day10"
35+
},
36+
{
37+
"path": "day11"
38+
},
3339
{
3440
"path": "day12"
3541
},

day10/Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "day10"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
aoc = { path = "../aoc/" }

day10/resources/input.txt

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
noop
2+
noop
3+
addx 6
4+
addx -1
5+
noop
6+
addx 5
7+
addx 3
8+
noop
9+
addx 3
10+
addx -1
11+
addx -13
12+
addx 17
13+
addx 3
14+
addx 3
15+
noop
16+
noop
17+
noop
18+
addx 5
19+
addx 1
20+
noop
21+
addx 4
22+
addx 1
23+
noop
24+
addx -38
25+
addx 5
26+
noop
27+
addx 2
28+
addx 3
29+
noop
30+
addx 2
31+
addx 2
32+
addx 3
33+
addx -2
34+
addx 5
35+
addx 2
36+
addx -18
37+
addx 6
38+
addx 15
39+
addx 5
40+
addx 2
41+
addx -22
42+
noop
43+
noop
44+
addx 30
45+
noop
46+
noop
47+
addx -39
48+
addx 1
49+
addx 19
50+
addx -16
51+
addx 35
52+
addx -28
53+
addx -1
54+
addx 12
55+
addx -8
56+
noop
57+
addx 3
58+
addx 4
59+
noop
60+
addx -3
61+
addx 6
62+
addx 5
63+
addx 2
64+
noop
65+
noop
66+
noop
67+
noop
68+
noop
69+
addx 7
70+
addx -39
71+
noop
72+
noop
73+
addx 5
74+
addx 2
75+
addx 2
76+
addx -1
77+
addx 2
78+
addx 2
79+
addx 5
80+
addx 1
81+
noop
82+
addx 4
83+
addx -13
84+
addx 18
85+
noop
86+
noop
87+
noop
88+
addx 12
89+
addx -9
90+
addx 8
91+
noop
92+
noop
93+
addx -2
94+
addx -36
95+
noop
96+
noop
97+
addx 5
98+
addx 2
99+
addx 3
100+
addx -2
101+
addx 2
102+
addx 2
103+
noop
104+
addx 3
105+
addx 5
106+
addx 2
107+
addx 19
108+
addx -14
109+
noop
110+
addx 2
111+
addx 3
112+
noop
113+
addx -29
114+
addx 34
115+
noop
116+
addx -35
117+
noop
118+
addx -2
119+
addx 2
120+
noop
121+
addx 6
122+
noop
123+
noop
124+
noop
125+
noop
126+
addx 2
127+
noop
128+
addx 3
129+
addx 2
130+
addx 5
131+
addx 2
132+
addx 1
133+
noop
134+
addx 4
135+
addx -17
136+
addx 18
137+
addx 4
138+
noop
139+
addx 1
140+
addx 4
141+
noop
142+
addx 1
143+
noop
144+
noop

day10/resources/sample.txt

+146
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
addx 15
2+
addx -11
3+
addx 6
4+
addx -3
5+
addx 5
6+
addx -1
7+
addx -8
8+
addx 13
9+
addx 4
10+
noop
11+
addx -1
12+
addx 5
13+
addx -1
14+
addx 5
15+
addx -1
16+
addx 5
17+
addx -1
18+
addx 5
19+
addx -1
20+
addx -35
21+
addx 1
22+
addx 24
23+
addx -19
24+
addx 1
25+
addx 16
26+
addx -11
27+
noop
28+
noop
29+
addx 21
30+
addx -15
31+
noop
32+
noop
33+
addx -3
34+
addx 9
35+
addx 1
36+
addx -3
37+
addx 8
38+
addx 1
39+
addx 5
40+
noop
41+
noop
42+
noop
43+
noop
44+
noop
45+
addx -36
46+
noop
47+
addx 1
48+
addx 7
49+
noop
50+
noop
51+
noop
52+
addx 2
53+
addx 6
54+
noop
55+
noop
56+
noop
57+
noop
58+
noop
59+
addx 1
60+
noop
61+
noop
62+
addx 7
63+
addx 1
64+
noop
65+
addx -13
66+
addx 13
67+
addx 7
68+
noop
69+
addx 1
70+
addx -33
71+
noop
72+
noop
73+
noop
74+
addx 2
75+
noop
76+
noop
77+
noop
78+
addx 8
79+
noop
80+
addx -1
81+
addx 2
82+
addx 1
83+
noop
84+
addx 17
85+
addx -9
86+
addx 1
87+
addx 1
88+
addx -3
89+
addx 11
90+
noop
91+
noop
92+
addx 1
93+
noop
94+
addx 1
95+
noop
96+
noop
97+
addx -13
98+
addx -19
99+
addx 1
100+
addx 3
101+
addx 26
102+
addx -30
103+
addx 12
104+
addx -1
105+
addx 3
106+
addx 1
107+
noop
108+
noop
109+
noop
110+
addx -9
111+
addx 18
112+
addx 1
113+
addx 2
114+
noop
115+
noop
116+
addx 9
117+
noop
118+
noop
119+
noop
120+
addx -1
121+
addx 2
122+
addx -37
123+
addx 1
124+
addx 3
125+
noop
126+
addx 15
127+
addx -21
128+
addx 22
129+
addx -6
130+
addx 1
131+
noop
132+
addx 2
133+
addx 1
134+
noop
135+
addx -10
136+
noop
137+
noop
138+
addx 20
139+
addx 1
140+
addx 2
141+
addx 2
142+
addx -6
143+
addx -11
144+
noop
145+
noop
146+
noop

day10/resources/snippet.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
noop
2+
addx 3
3+
addx -5

0 commit comments

Comments
 (0)