Supahands
commited on
Delete Aoc-sample - Sheet1.csv
Browse files- Aoc-sample - Sheet1.csv +0 -592
Aoc-sample - Sheet1.csv
DELETED
@@ -1,592 +0,0 @@
|
|
1 |
-
Year,Day,Part,prompt,Solution,Language,Test Cases
|
2 |
-
2024,1,1,"--- Day 1: Historian Hysteria ---
|
3 |
-
|
4 |
-
The Chief Historian is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit.
|
5 |
-
|
6 |
-
As each location is checked, they will mark it on their list with a star. They figure the Chief Historian must be in one of the first fifty places they'll look, so in order to save Christmas, you need to help them get fifty stars on their list before Santa takes off on December 25th.
|
7 |
-
|
8 |
-
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
9 |
-
|
10 |
-
You haven't even left yet and the group of Elvish Senior Historians has already hit a problem: their list of locations to check is currently empty. Eventually, someone decides that the best place to check first would be the Chief Historian's office.
|
11 |
-
|
12 |
-
Upon pouring into the office, everyone confirms that the Chief Historian is indeed nowhere to be found. Instead, the Elves discover an assortment of notes and lists of historically significant locations! This seems to be the planning the Chief Historian was doing before he left. Perhaps these notes can be used to determine which locations to search?
|
13 |
-
|
14 |
-
Throughout the Chief's office, the historically significant locations are listed not by name but by a unique number called the location ID. To make sure they don't miss anything, The Historians split into two groups, each searching the office and trying to create their own complete list of location IDs.
|
15 |
-
|
16 |
-
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists?
|
17 |
-
|
18 |
-
For example:
|
19 |
-
|
20 |
-
3 4
|
21 |
-
4 3
|
22 |
-
2 5
|
23 |
-
1 3
|
24 |
-
3 9
|
25 |
-
3 3
|
26 |
-
Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on.
|
27 |
-
|
28 |
-
Within each pair, figure out how far apart the two numbers are; you'll need to add up all of those distances. For example, if you pair up a 3 from the left list with a 7 from the right list, the distance apart is 4; if you pair up a 9 with a 3, the distance apart is 6.
|
29 |
-
|
30 |
-
In the example list above, the pairs and distances would be as follows:
|
31 |
-
|
32 |
-
The smallest number in the left list is 1, and the smallest number in the right list is 3. The distance between them is 2.
|
33 |
-
The second-smallest number in the left list is 2, and the second-smallest number in the right list is another 3. The distance between them is 1.
|
34 |
-
The third-smallest number in both lists is 3, so the distance between them is 0.
|
35 |
-
The next numbers to pair up are 3 and 4, a distance of 1.
|
36 |
-
The fifth-smallest numbers in each list are 3 and 5, a distance of 2.
|
37 |
-
Finally, the largest number in the left list is 4, while the largest number in the right list is 9; these are a distance 5 apart.
|
38 |
-
To find the total distance between the left list and the right list, add up the distances between all of the pairs you found. In the example above, this is 2 + 1 + 0 + 1 + 2 + 5, a total distance of 11!
|
39 |
-
|
40 |
-
Your actual left and right lists contain many location IDs. What is the total distance between your lists?",solution 1,Python,"[[""/test_cases/day1/test_case_1_input.txt"",""/test_cases/day1/test_case_1_output.txt""],
|
41 |
-
[""/test_cases/day1/test_case_2_input.txt"",""/test_cases/day1/test_case_2_output.txt""],
|
42 |
-
[""/test_cases/day1/test_case_3_input.txt"",""/test_cases/day1/test_case_3_output.txt""]]"
|
43 |
-
2024,1,1,"--- Day 1: Historian Hysteria ---
|
44 |
-
|
45 |
-
The Chief Historian is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit.
|
46 |
-
|
47 |
-
As each location is checked, they will mark it on their list with a star. They figure the Chief Historian must be in one of the first fifty places they'll look, so in order to save Christmas, you need to help them get fifty stars on their list before Santa takes off on December 25th.
|
48 |
-
|
49 |
-
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
50 |
-
|
51 |
-
You haven't even left yet and the group of Elvish Senior Historians has already hit a problem: their list of locations to check is currently empty. Eventually, someone decides that the best place to check first would be the Chief Historian's office.
|
52 |
-
|
53 |
-
Upon pouring into the office, everyone confirms that the Chief Historian is indeed nowhere to be found. Instead, the Elves discover an assortment of notes and lists of historically significant locations! This seems to be the planning the Chief Historian was doing before he left. Perhaps these notes can be used to determine which locations to search?
|
54 |
-
|
55 |
-
Throughout the Chief's office, the historically significant locations are listed not by name but by a unique number called the location ID. To make sure they don't miss anything, The Historians split into two groups, each searching the office and trying to create their own complete list of location IDs.
|
56 |
-
|
57 |
-
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists?
|
58 |
-
|
59 |
-
For example:
|
60 |
-
|
61 |
-
3 4
|
62 |
-
4 3
|
63 |
-
2 5
|
64 |
-
1 3
|
65 |
-
3 9
|
66 |
-
3 3
|
67 |
-
Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on.
|
68 |
-
|
69 |
-
Within each pair, figure out how far apart the two numbers are; you'll need to add up all of those distances. For example, if you pair up a 3 from the left list with a 7 from the right list, the distance apart is 4; if you pair up a 9 with a 3, the distance apart is 6.
|
70 |
-
|
71 |
-
In the example list above, the pairs and distances would be as follows:
|
72 |
-
|
73 |
-
The smallest number in the left list is 1, and the smallest number in the right list is 3. The distance between them is 2.
|
74 |
-
The second-smallest number in the left list is 2, and the second-smallest number in the right list is another 3. The distance between them is 1.
|
75 |
-
The third-smallest number in both lists is 3, so the distance between them is 0.
|
76 |
-
The next numbers to pair up are 3 and 4, a distance of 1.
|
77 |
-
The fifth-smallest numbers in each list are 3 and 5, a distance of 2.
|
78 |
-
Finally, the largest number in the left list is 4, while the largest number in the right list is 9; these are a distance 5 apart.
|
79 |
-
To find the total distance between the left list and the right list, add up the distances between all of the pairs you found. In the example above, this is 2 + 1 + 0 + 1 + 2 + 5, a total distance of 11!
|
80 |
-
|
81 |
-
Your actual left and right lists contain many location IDs. What is the total distance between your lists?",solution2,Python,"[[""/test_cases/day1/test_case_1_input.txt"",""/test_cases/day1/test_case_1_output.txt""],
|
82 |
-
[""/test_cases/day1/test_case_2_input.txt"",""/test_cases/day1/test_case_2_output.txt""],
|
83 |
-
[""/test_cases/day1/test_case_3_input.txt"",""/test_cases/day1/test_case_3_output.txt""]]"
|
84 |
-
2024,1,1,"--- Day 1: Historian Hysteria ---
|
85 |
-
|
86 |
-
The Chief Historian is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit.
|
87 |
-
|
88 |
-
As each location is checked, they will mark it on their list with a star. They figure the Chief Historian must be in one of the first fifty places they'll look, so in order to save Christmas, you need to help them get fifty stars on their list before Santa takes off on December 25th.
|
89 |
-
|
90 |
-
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
91 |
-
|
92 |
-
You haven't even left yet and the group of Elvish Senior Historians has already hit a problem: their list of locations to check is currently empty. Eventually, someone decides that the best place to check first would be the Chief Historian's office.
|
93 |
-
|
94 |
-
Upon pouring into the office, everyone confirms that the Chief Historian is indeed nowhere to be found. Instead, the Elves discover an assortment of notes and lists of historically significant locations! This seems to be the planning the Chief Historian was doing before he left. Perhaps these notes can be used to determine which locations to search?
|
95 |
-
|
96 |
-
Throughout the Chief's office, the historically significant locations are listed not by name but by a unique number called the location ID. To make sure they don't miss anything, The Historians split into two groups, each searching the office and trying to create their own complete list of location IDs.
|
97 |
-
|
98 |
-
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists?
|
99 |
-
|
100 |
-
For example:
|
101 |
-
|
102 |
-
3 4
|
103 |
-
4 3
|
104 |
-
2 5
|
105 |
-
1 3
|
106 |
-
3 9
|
107 |
-
3 3
|
108 |
-
Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on.
|
109 |
-
|
110 |
-
Within each pair, figure out how far apart the two numbers are; you'll need to add up all of those distances. For example, if you pair up a 3 from the left list with a 7 from the right list, the distance apart is 4; if you pair up a 9 with a 3, the distance apart is 6.
|
111 |
-
|
112 |
-
In the example list above, the pairs and distances would be as follows:
|
113 |
-
|
114 |
-
The smallest number in the left list is 1, and the smallest number in the right list is 3. The distance between them is 2.
|
115 |
-
The second-smallest number in the left list is 2, and the second-smallest number in the right list is another 3. The distance between them is 1.
|
116 |
-
The third-smallest number in both lists is 3, so the distance between them is 0.
|
117 |
-
The next numbers to pair up are 3 and 4, a distance of 1.
|
118 |
-
The fifth-smallest numbers in each list are 3 and 5, a distance of 2.
|
119 |
-
Finally, the largest number in the left list is 4, while the largest number in the right list is 9; these are a distance 5 apart.
|
120 |
-
To find the total distance between the left list and the right list, add up the distances between all of the pairs you found. In the example above, this is 2 + 1 + 0 + 1 + 2 + 5, a total distance of 11!
|
121 |
-
|
122 |
-
Your actual left and right lists contain many location IDs. What is the total distance between your lists?",solution3,Python,"[[""/test_cases/day1/test_case_1_input.txt"",""/test_cases/day1/test_case_1_output.txt""],
|
123 |
-
[""/test_cases/day1/test_case_2_input.txt"",""/test_cases/day1/test_case_2_output.txt""],
|
124 |
-
[""/test_cases/day1/test_case_3_input.txt"",""/test_cases/day1/test_case_3_output.txt""]]"
|
125 |
-
2024,1,2,"--- Day 1: Historian Hysteria ---
|
126 |
-
|
127 |
-
The Chief Historian is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit.
|
128 |
-
|
129 |
-
As each location is checked, they will mark it on their list with a star. They figure the Chief Historian must be in one of the first fifty places they'll look, so in order to save Christmas, you need to help them get fifty stars on their list before Santa takes off on December 25th.
|
130 |
-
|
131 |
-
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
132 |
-
|
133 |
-
You haven't even left yet and the group of Elvish Senior Historians has already hit a problem: their list of locations to check is currently empty. Eventually, someone decides that the best place to check first would be the Chief Historian's office.
|
134 |
-
|
135 |
-
Upon pouring into the office, everyone confirms that the Chief Historian is indeed nowhere to be found. Instead, the Elves discover an assortment of notes and lists of historically significant locations! This seems to be the planning the Chief Historian was doing before he left. Perhaps these notes can be used to determine which locations to search?
|
136 |
-
|
137 |
-
Throughout the Chief's office, the historically significant locations are listed not by name but by a unique number called the location ID. To make sure they don't miss anything, The Historians split into two groups, each searching the office and trying to create their own complete list of location IDs.
|
138 |
-
|
139 |
-
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists?
|
140 |
-
|
141 |
-
For example:
|
142 |
-
|
143 |
-
3 4
|
144 |
-
4 3
|
145 |
-
2 5
|
146 |
-
1 3
|
147 |
-
3 9
|
148 |
-
3 3
|
149 |
-
Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on.
|
150 |
-
|
151 |
-
Within each pair, figure out how far apart the two numbers are; you'll need to add up all of those distances. For example, if you pair up a 3 from the left list with a 7 from the right list, the distance apart is 4; if you pair up a 9 with a 3, the distance apart is 6.
|
152 |
-
|
153 |
-
In the example list above, the pairs and distances would be as follows:
|
154 |
-
|
155 |
-
The smallest number in the left list is 1, and the smallest number in the right list is 3. The distance between them is 2.
|
156 |
-
The second-smallest number in the left list is 2, and the second-smallest number in the right list is another 3. The distance between them is 1.
|
157 |
-
The third-smallest number in both lists is 3, so the distance between them is 0.
|
158 |
-
The next numbers to pair up are 3 and 4, a distance of 1.
|
159 |
-
The fifth-smallest numbers in each list are 3 and 5, a distance of 2.
|
160 |
-
Finally, the largest number in the left list is 4, while the largest number in the right list is 9; these are a distance 5 apart.
|
161 |
-
To find the total distance between the left list and the right list, add up the distances between all of the pairs you found. In the example above, this is 2 + 1 + 0 + 1 + 2 + 5, a total distance of 11!
|
162 |
-
|
163 |
-
Your actual left and right lists contain many location IDs. What is the total distance between your lists?
|
164 |
-
|
165 |
-
Your puzzle answer was {part1_answer}.
|
166 |
-
|
167 |
-
--- Part Two ---
|
168 |
-
|
169 |
-
Your analysis only confirmed what everyone feared: the two lists of location IDs are indeed very different.
|
170 |
-
|
171 |
-
Or are they?
|
172 |
-
|
173 |
-
The Historians can't agree on which group made the mistakes or how to read most of the Chief's handwriting, but in the commotion you notice an interesting detail: a lot of location IDs appear in both lists! Maybe the other numbers aren't location IDs at all but rather misinterpreted handwriting.
|
174 |
-
|
175 |
-
This time, you'll need to figure out exactly how often each number from the left list appears in the right list. Calculate a total similarity score by adding up each number in the left list after multiplying it by the number of times that number appears in the right list.
|
176 |
-
|
177 |
-
Here are the same example lists again:
|
178 |
-
|
179 |
-
3 4
|
180 |
-
4 3
|
181 |
-
2 5
|
182 |
-
1 3
|
183 |
-
3 9
|
184 |
-
3 3
|
185 |
-
For these example lists, here is the process of finding the similarity score:
|
186 |
-
|
187 |
-
The first number in the left list is 3. It appears in the right list three times, so the similarity score increases by 3 * 3 = 9.
|
188 |
-
The second number in the left list is 4. It appears in the right list once, so the similarity score increases by 4 * 1 = 4.
|
189 |
-
The third number in the left list is 2. It does not appear in the right list, so the similarity score does not increase (2 * 0 = 0).
|
190 |
-
The fourth number, 1, also does not appear in the right list.
|
191 |
-
The fifth number, 3, appears in the right list three times; the similarity score increases by 9.
|
192 |
-
The last number, 3, appears in the right list three times; the similarity score again increases by 9.
|
193 |
-
So, for these example lists, the similarity score at the end of this process is 31 (9 + 4 + 0 + 0 + 9 + 9).
|
194 |
-
|
195 |
-
Once again consider your left and right lists. What is their similarity score?",solution 1,Python,"[[""/test_cases/day2/test_case_1_input.txt"",""/test_cases/day2/test_case_1_output.txt""],
|
196 |
-
[""/test_cases/day2/test_case_2_input.txt"",""/test_cases/day2/test_case_2_output.txt""],
|
197 |
-
[""/test_cases/day2/test_case_3_input.txt"",""/test_cases/day2/test_case_3_output.txt""]]"
|
198 |
-
2024,1,2,"--- Day 1: Historian Hysteria ---
|
199 |
-
|
200 |
-
The Chief Historian is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit.
|
201 |
-
|
202 |
-
As each location is checked, they will mark it on their list with a star. They figure the Chief Historian must be in one of the first fifty places they'll look, so in order to save Christmas, you need to help them get fifty stars on their list before Santa takes off on December 25th.
|
203 |
-
|
204 |
-
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
205 |
-
|
206 |
-
You haven't even left yet and the group of Elvish Senior Historians has already hit a problem: their list of locations to check is currently empty. Eventually, someone decides that the best place to check first would be the Chief Historian's office.
|
207 |
-
|
208 |
-
Upon pouring into the office, everyone confirms that the Chief Historian is indeed nowhere to be found. Instead, the Elves discover an assortment of notes and lists of historically significant locations! This seems to be the planning the Chief Historian was doing before he left. Perhaps these notes can be used to determine which locations to search?
|
209 |
-
|
210 |
-
Throughout the Chief's office, the historically significant locations are listed not by name but by a unique number called the location ID. To make sure they don't miss anything, The Historians split into two groups, each searching the office and trying to create their own complete list of location IDs.
|
211 |
-
|
212 |
-
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists?
|
213 |
-
|
214 |
-
For example:
|
215 |
-
|
216 |
-
3 4
|
217 |
-
4 3
|
218 |
-
2 5
|
219 |
-
1 3
|
220 |
-
3 9
|
221 |
-
3 3
|
222 |
-
Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on.
|
223 |
-
|
224 |
-
Within each pair, figure out how far apart the two numbers are; you'll need to add up all of those distances. For example, if you pair up a 3 from the left list with a 7 from the right list, the distance apart is 4; if you pair up a 9 with a 3, the distance apart is 6.
|
225 |
-
|
226 |
-
In the example list above, the pairs and distances would be as follows:
|
227 |
-
|
228 |
-
The smallest number in the left list is 1, and the smallest number in the right list is 3. The distance between them is 2.
|
229 |
-
The second-smallest number in the left list is 2, and the second-smallest number in the right list is another 3. The distance between them is 1.
|
230 |
-
The third-smallest number in both lists is 3, so the distance between them is 0.
|
231 |
-
The next numbers to pair up are 3 and 4, a distance of 1.
|
232 |
-
The fifth-smallest numbers in each list are 3 and 5, a distance of 2.
|
233 |
-
Finally, the largest number in the left list is 4, while the largest number in the right list is 9; these are a distance 5 apart.
|
234 |
-
To find the total distance between the left list and the right list, add up the distances between all of the pairs you found. In the example above, this is 2 + 1 + 0 + 1 + 2 + 5, a total distance of 11!
|
235 |
-
|
236 |
-
Your actual left and right lists contain many location IDs. What is the total distance between your lists?
|
237 |
-
|
238 |
-
Your puzzle answer was {part1_answer}.
|
239 |
-
|
240 |
-
--- Part Two ---
|
241 |
-
|
242 |
-
Your analysis only confirmed what everyone feared: the two lists of location IDs are indeed very different.
|
243 |
-
|
244 |
-
Or are they?
|
245 |
-
|
246 |
-
The Historians can't agree on which group made the mistakes or how to read most of the Chief's handwriting, but in the commotion you notice an interesting detail: a lot of location IDs appear in both lists! Maybe the other numbers aren't location IDs at all but rather misinterpreted handwriting.
|
247 |
-
|
248 |
-
This time, you'll need to figure out exactly how often each number from the left list appears in the right list. Calculate a total similarity score by adding up each number in the left list after multiplying it by the number of times that number appears in the right list.
|
249 |
-
|
250 |
-
Here are the same example lists again:
|
251 |
-
|
252 |
-
3 4
|
253 |
-
4 3
|
254 |
-
2 5
|
255 |
-
1 3
|
256 |
-
3 9
|
257 |
-
3 3
|
258 |
-
For these example lists, here is the process of finding the similarity score:
|
259 |
-
|
260 |
-
The first number in the left list is 3. It appears in the right list three times, so the similarity score increases by 3 * 3 = 9.
|
261 |
-
The second number in the left list is 4. It appears in the right list once, so the similarity score increases by 4 * 1 = 4.
|
262 |
-
The third number in the left list is 2. It does not appear in the right list, so the similarity score does not increase (2 * 0 = 0).
|
263 |
-
The fourth number, 1, also does not appear in the right list.
|
264 |
-
The fifth number, 3, appears in the right list three times; the similarity score increases by 9.
|
265 |
-
The last number, 3, appears in the right list three times; the similarity score again increases by 9.
|
266 |
-
So, for these example lists, the similarity score at the end of this process is 31 (9 + 4 + 0 + 0 + 9 + 9).
|
267 |
-
|
268 |
-
Once again consider your left and right lists. What is their similarity score?",solution2,Python,"[[""/test_cases/day2/test_case_1_input.txt"",""/test_cases/day2/test_case_1_output.txt""],
|
269 |
-
[""/test_cases/day2/test_case_2_input.txt"",""/test_cases/day2/test_case_2_output.txt""],
|
270 |
-
[""/test_cases/day2/test_case_3_input.txt"",""/test_cases/day2/test_case_3_output.txt""]]"
|
271 |
-
2024,1,2,"--- Day 1: Historian Hysteria ---
|
272 |
-
|
273 |
-
The Chief Historian is always present for the big Christmas sleigh launch, but nobody has seen him in months! Last anyone heard, he was visiting locations that are historically significant to the North Pole; a group of Senior Historians has asked you to accompany them as they check the places they think he was most likely to visit.
|
274 |
-
|
275 |
-
As each location is checked, they will mark it on their list with a star. They figure the Chief Historian must be in one of the first fifty places they'll look, so in order to save Christmas, you need to help them get fifty stars on their list before Santa takes off on December 25th.
|
276 |
-
|
277 |
-
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
|
278 |
-
|
279 |
-
You haven't even left yet and the group of Elvish Senior Historians has already hit a problem: their list of locations to check is currently empty. Eventually, someone decides that the best place to check first would be the Chief Historian's office.
|
280 |
-
|
281 |
-
Upon pouring into the office, everyone confirms that the Chief Historian is indeed nowhere to be found. Instead, the Elves discover an assortment of notes and lists of historically significant locations! This seems to be the planning the Chief Historian was doing before he left. Perhaps these notes can be used to determine which locations to search?
|
282 |
-
|
283 |
-
Throughout the Chief's office, the historically significant locations are listed not by name but by a unique number called the location ID. To make sure they don't miss anything, The Historians split into two groups, each searching the office and trying to create their own complete list of location IDs.
|
284 |
-
|
285 |
-
There's just one problem: by holding the two lists up side by side (your puzzle input), it quickly becomes clear that the lists aren't very similar. Maybe you can help The Historians reconcile their lists?
|
286 |
-
|
287 |
-
For example:
|
288 |
-
|
289 |
-
3 4
|
290 |
-
4 3
|
291 |
-
2 5
|
292 |
-
1 3
|
293 |
-
3 9
|
294 |
-
3 3
|
295 |
-
Maybe the lists are only off by a small amount! To find out, pair up the numbers and measure how far apart they are. Pair up the smallest number in the left list with the smallest number in the right list, then the second-smallest left number with the second-smallest right number, and so on.
|
296 |
-
|
297 |
-
Within each pair, figure out how far apart the two numbers are; you'll need to add up all of those distances. For example, if you pair up a 3 from the left list with a 7 from the right list, the distance apart is 4; if you pair up a 9 with a 3, the distance apart is 6.
|
298 |
-
|
299 |
-
In the example list above, the pairs and distances would be as follows:
|
300 |
-
|
301 |
-
The smallest number in the left list is 1, and the smallest number in the right list is 3. The distance between them is 2.
|
302 |
-
The second-smallest number in the left list is 2, and the second-smallest number in the right list is another 3. The distance between them is 1.
|
303 |
-
The third-smallest number in both lists is 3, so the distance between them is 0.
|
304 |
-
The next numbers to pair up are 3 and 4, a distance of 1.
|
305 |
-
The fifth-smallest numbers in each list are 3 and 5, a distance of 2.
|
306 |
-
Finally, the largest number in the left list is 4, while the largest number in the right list is 9; these are a distance 5 apart.
|
307 |
-
To find the total distance between the left list and the right list, add up the distances between all of the pairs you found. In the example above, this is 2 + 1 + 0 + 1 + 2 + 5, a total distance of 11!
|
308 |
-
|
309 |
-
Your actual left and right lists contain many location IDs. What is the total distance between your lists?
|
310 |
-
|
311 |
-
Your puzzle answer was {part1_answer}.
|
312 |
-
|
313 |
-
--- Part Two ---
|
314 |
-
|
315 |
-
Your analysis only confirmed what everyone feared: the two lists of location IDs are indeed very different.
|
316 |
-
|
317 |
-
Or are they?
|
318 |
-
|
319 |
-
The Historians can't agree on which group made the mistakes or how to read most of the Chief's handwriting, but in the commotion you notice an interesting detail: a lot of location IDs appear in both lists! Maybe the other numbers aren't location IDs at all but rather misinterpreted handwriting.
|
320 |
-
|
321 |
-
This time, you'll need to figure out exactly how often each number from the left list appears in the right list. Calculate a total similarity score by adding up each number in the left list after multiplying it by the number of times that number appears in the right list.
|
322 |
-
|
323 |
-
Here are the same example lists again:
|
324 |
-
|
325 |
-
3 4
|
326 |
-
4 3
|
327 |
-
2 5
|
328 |
-
1 3
|
329 |
-
3 9
|
330 |
-
3 3
|
331 |
-
For these example lists, here is the process of finding the similarity score:
|
332 |
-
|
333 |
-
The first number in the left list is 3. It appears in the right list three times, so the similarity score increases by 3 * 3 = 9.
|
334 |
-
The second number in the left list is 4. It appears in the right list once, so the similarity score increases by 4 * 1 = 4.
|
335 |
-
The third number in the left list is 2. It does not appear in the right list, so the similarity score does not increase (2 * 0 = 0).
|
336 |
-
The fourth number, 1, also does not appear in the right list.
|
337 |
-
The fifth number, 3, appears in the right list three times; the similarity score increases by 9.
|
338 |
-
The last number, 3, appears in the right list three times; the similarity score again increases by 9.
|
339 |
-
So, for these example lists, the similarity score at the end of this process is 31 (9 + 4 + 0 + 0 + 9 + 9).
|
340 |
-
|
341 |
-
Once again consider your left and right lists. What is their similarity score?",solution3,Python,"[[""/test_cases/day2/test_case_1_input.txt"",""/test_cases/day2/test_case_1_output.txt""],
|
342 |
-
[""/test_cases/day2/test_case_2_input.txt"",""/test_cases/day2/test_case_2_output.txt""],
|
343 |
-
[""/test_cases/day2/test_case_3_input.txt"",""/test_cases/day2/test_case_3_output.txt""]]"
|
344 |
-
2024,12,1,"--- Day 12: Garden Groups ---
|
345 |
-
|
346 |
-
Why not search for the Chief Historian near the gardener and his massive farm? There's plenty of food, so The Historians grab something to eat while they search.
|
347 |
-
|
348 |
-
You're about to settle near a complex arrangement of garden plots when some Elves ask if you can lend a hand. They'd like to set up fences around each region of garden plots, but they can't figure out how much fence they need to order or how much it will cost. They hand you a map (your puzzle input) of the garden plots.
|
349 |
-
|
350 |
-
Each garden plot grows only a single type of plant and is indicated by a single letter on your map. When multiple garden plots are growing the same type of plant and are touching (horizontally or vertically), they form a region. For example:
|
351 |
-
|
352 |
-
AAAA
|
353 |
-
BBCD
|
354 |
-
BBCC
|
355 |
-
EEEC
|
356 |
-
This 4x4 arrangement includes garden plots growing five different types of plants (labeled A, B, C, D, and E), each grouped into their own region.
|
357 |
-
|
358 |
-
In order to accurately calculate the cost of the fence around a single region, you need to know that region's area and perimeter.
|
359 |
-
|
360 |
-
The area of a region is simply the number of garden plots the region contains. The above map's type A, B, and C plants are each in a region of area 4. The type E plants are in a region of area 3; the type D plants are in a region of area 1.
|
361 |
-
|
362 |
-
Each garden plot is a square and so has four sides. The perimeter of a region is the number of sides of garden plots in the region that do not touch another garden plot in the same region. The type A and C plants are each in a region with perimeter 10. The type B and E plants are each in a region with perimeter 8. The lone D plot forms its own region with perimeter 4.
|
363 |
-
|
364 |
-
Visually indicating the sides of plots in each region that contribute to the perimeter using - and |, the above map's regions' perimeters are measured as follows:
|
365 |
-
|
366 |
-
+-+-+-+-+
|
367 |
-
|A A A A|
|
368 |
-
+-+-+-+-+ +-+
|
369 |
-
|D|
|
370 |
-
+-+-+ +-+ +-+
|
371 |
-
|B B| |C|
|
372 |
-
+ + + +-+
|
373 |
-
|B B| |C C|
|
374 |
-
+-+-+ +-+ +
|
375 |
-
|C|
|
376 |
-
+-+-+-+ +-+
|
377 |
-
|E E E|
|
378 |
-
+-+-+-+
|
379 |
-
Plants of the same type can appear in multiple separate regions, and regions can even appear within other regions. For example:
|
380 |
-
|
381 |
-
OOOOO
|
382 |
-
OXOXO
|
383 |
-
OOOOO
|
384 |
-
OXOXO
|
385 |
-
OOOOO
|
386 |
-
The above map contains five regions, one containing all of the O garden plots, and the other four each containing a single X plot.
|
387 |
-
|
388 |
-
The four X regions each have area 1 and perimeter 4. The region containing 21 type O plants is more complicated; in addition to its outer edge contributing a perimeter of 20, its boundary with each X region contributes an additional 4 to its perimeter, for a total perimeter of 36.
|
389 |
-
|
390 |
-
Due to ""modern"" business practices, the price of fence required for a region is found by multiplying that region's area by its perimeter. The total price of fencing all regions on a map is found by adding together the price of fence for every region on the map.
|
391 |
-
|
392 |
-
In the first example, region A has price 4 * 10 = 40, region B has price 4 * 8 = 32, region C has price 4 * 10 = 40, region D has price 1 * 4 = 4, and region E has price 3 * 8 = 24. So, the total price for the first example is 140.
|
393 |
-
|
394 |
-
In the second example, the region with all of the O plants has price 21 * 36 = 756, and each of the four smaller X regions has price 1 * 4 = 4, for a total price of 772 (756 + 4 + 4 + 4 + 4).
|
395 |
-
|
396 |
-
Here's a larger example:
|
397 |
-
|
398 |
-
RRRRIICCFF
|
399 |
-
RRRRIICCCF
|
400 |
-
VVRRRCCFFF
|
401 |
-
VVRCCCJFFF
|
402 |
-
VVVVCJJCFE
|
403 |
-
VVIVCCJJEE
|
404 |
-
VVIIICJJEE
|
405 |
-
MIIIIIJJEE
|
406 |
-
MIIISIJEEE
|
407 |
-
MMMISSJEEE
|
408 |
-
It contains:
|
409 |
-
|
410 |
-
A region of R plants with price 12 * 18 = 216.
|
411 |
-
A region of I plants with price 4 * 8 = 32.
|
412 |
-
A region of C plants with price 14 * 28 = 392.
|
413 |
-
A region of F plants with price 10 * 18 = 180.
|
414 |
-
A region of V plants with price 13 * 20 = 260.
|
415 |
-
A region of J plants with price 11 * 20 = 220.
|
416 |
-
A region of C plants with price 1 * 4 = 4.
|
417 |
-
A region of E plants with price 13 * 18 = 234.
|
418 |
-
A region of I plants with price 14 * 22 = 308.
|
419 |
-
A region of M plants with price 5 * 12 = 60.
|
420 |
-
A region of S plants with price 3 * 8 = 24.
|
421 |
-
So, it has a total price of 1930.
|
422 |
-
|
423 |
-
What is the total price of fencing all regions on your map?
|
424 |
-
",solution1,Python,"[[""/test_cases/day12/test_case_1_input.txt"",""/test_cases/day12/test_case_1_output.txt""],
|
425 |
-
[""/test_cases/day12/test_case_2_input.txt"",""/test_cases/day12/test_case_2_output.txt""],
|
426 |
-
[""/test_cases/day12/test_case_3_input.txt"",""/test_cases/day12/test_case_3_output.txt""]]"
|
427 |
-
2024,12,1,"--- Day 12: Garden Groups ---
|
428 |
-
|
429 |
-
Why not search for the Chief Historian near the gardener and his massive farm? There's plenty of food, so The Historians grab something to eat while they search.
|
430 |
-
|
431 |
-
You're about to settle near a complex arrangement of garden plots when some Elves ask if you can lend a hand. They'd like to set up fences around each region of garden plots, but they can't figure out how much fence they need to order or how much it will cost. They hand you a map (your puzzle input) of the garden plots.
|
432 |
-
|
433 |
-
Each garden plot grows only a single type of plant and is indicated by a single letter on your map. When multiple garden plots are growing the same type of plant and are touching (horizontally or vertically), they form a region. For example:
|
434 |
-
|
435 |
-
AAAA
|
436 |
-
BBCD
|
437 |
-
BBCC
|
438 |
-
EEEC
|
439 |
-
This 4x4 arrangement includes garden plots growing five different types of plants (labeled A, B, C, D, and E), each grouped into their own region.
|
440 |
-
|
441 |
-
In order to accurately calculate the cost of the fence around a single region, you need to know that region's area and perimeter.
|
442 |
-
|
443 |
-
The area of a region is simply the number of garden plots the region contains. The above map's type A, B, and C plants are each in a region of area 4. The type E plants are in a region of area 3; the type D plants are in a region of area 1.
|
444 |
-
|
445 |
-
Each garden plot is a square and so has four sides. The perimeter of a region is the number of sides of garden plots in the region that do not touch another garden plot in the same region. The type A and C plants are each in a region with perimeter 10. The type B and E plants are each in a region with perimeter 8. The lone D plot forms its own region with perimeter 4.
|
446 |
-
|
447 |
-
Visually indicating the sides of plots in each region that contribute to the perimeter using - and |, the above map's regions' perimeters are measured as follows:
|
448 |
-
|
449 |
-
+-+-+-+-+
|
450 |
-
|A A A A|
|
451 |
-
+-+-+-+-+ +-+
|
452 |
-
|D|
|
453 |
-
+-+-+ +-+ +-+
|
454 |
-
|B B| |C|
|
455 |
-
+ + + +-+
|
456 |
-
|B B| |C C|
|
457 |
-
+-+-+ +-+ +
|
458 |
-
|C|
|
459 |
-
+-+-+-+ +-+
|
460 |
-
|E E E|
|
461 |
-
+-+-+-+
|
462 |
-
Plants of the same type can appear in multiple separate regions, and regions can even appear within other regions. For example:
|
463 |
-
|
464 |
-
OOOOO
|
465 |
-
OXOXO
|
466 |
-
OOOOO
|
467 |
-
OXOXO
|
468 |
-
OOOOO
|
469 |
-
The above map contains five regions, one containing all of the O garden plots, and the other four each containing a single X plot.
|
470 |
-
|
471 |
-
The four X regions each have area 1 and perimeter 4. The region containing 21 type O plants is more complicated; in addition to its outer edge contributing a perimeter of 20, its boundary with each X region contributes an additional 4 to its perimeter, for a total perimeter of 36.
|
472 |
-
|
473 |
-
Due to ""modern"" business practices, the price of fence required for a region is found by multiplying that region's area by its perimeter. The total price of fencing all regions on a map is found by adding together the price of fence for every region on the map.
|
474 |
-
|
475 |
-
In the first example, region A has price 4 * 10 = 40, region B has price 4 * 8 = 32, region C has price 4 * 10 = 40, region D has price 1 * 4 = 4, and region E has price 3 * 8 = 24. So, the total price for the first example is 140.
|
476 |
-
|
477 |
-
In the second example, the region with all of the O plants has price 21 * 36 = 756, and each of the four smaller X regions has price 1 * 4 = 4, for a total price of 772 (756 + 4 + 4 + 4 + 4).
|
478 |
-
|
479 |
-
Here's a larger example:
|
480 |
-
|
481 |
-
RRRRIICCFF
|
482 |
-
RRRRIICCCF
|
483 |
-
VVRRRCCFFF
|
484 |
-
VVRCCCJFFF
|
485 |
-
VVVVCJJCFE
|
486 |
-
VVIVCCJJEE
|
487 |
-
VVIIICJJEE
|
488 |
-
MIIIIIJJEE
|
489 |
-
MIIISIJEEE
|
490 |
-
MMMISSJEEE
|
491 |
-
It contains:
|
492 |
-
|
493 |
-
A region of R plants with price 12 * 18 = 216.
|
494 |
-
A region of I plants with price 4 * 8 = 32.
|
495 |
-
A region of C plants with price 14 * 28 = 392.
|
496 |
-
A region of F plants with price 10 * 18 = 180.
|
497 |
-
A region of V plants with price 13 * 20 = 260.
|
498 |
-
A region of J plants with price 11 * 20 = 220.
|
499 |
-
A region of C plants with price 1 * 4 = 4.
|
500 |
-
A region of E plants with price 13 * 18 = 234.
|
501 |
-
A region of I plants with price 14 * 22 = 308.
|
502 |
-
A region of M plants with price 5 * 12 = 60.
|
503 |
-
A region of S plants with price 3 * 8 = 24.
|
504 |
-
So, it has a total price of 1930.
|
505 |
-
|
506 |
-
What is the total price of fencing all regions on your map?
|
507 |
-
",solution2,Python,"[[""/test_cases/day12/test_case_1_input.txt"",""/test_cases/day12/test_case_1_output.txt""],
|
508 |
-
[""/test_cases/day12/test_case_2_input.txt"",""/test_cases/day12/test_case_2_output.txt""],
|
509 |
-
[""/test_cases/day12/test_case_3_input.txt"",""/test_cases/day12/test_case_3_output.txt""]]"
|
510 |
-
2024,12,1,"--- Day 12: Garden Groups ---
|
511 |
-
|
512 |
-
Why not search for the Chief Historian near the gardener and his massive farm? There's plenty of food, so The Historians grab something to eat while they search.
|
513 |
-
|
514 |
-
You're about to settle near a complex arrangement of garden plots when some Elves ask if you can lend a hand. They'd like to set up fences around each region of garden plots, but they can't figure out how much fence they need to order or how much it will cost. They hand you a map (your puzzle input) of the garden plots.
|
515 |
-
|
516 |
-
Each garden plot grows only a single type of plant and is indicated by a single letter on your map. When multiple garden plots are growing the same type of plant and are touching (horizontally or vertically), they form a region. For example:
|
517 |
-
|
518 |
-
AAAA
|
519 |
-
BBCD
|
520 |
-
BBCC
|
521 |
-
EEEC
|
522 |
-
This 4x4 arrangement includes garden plots growing five different types of plants (labeled A, B, C, D, and E), each grouped into their own region.
|
523 |
-
|
524 |
-
In order to accurately calculate the cost of the fence around a single region, you need to know that region's area and perimeter.
|
525 |
-
|
526 |
-
The area of a region is simply the number of garden plots the region contains. The above map's type A, B, and C plants are each in a region of area 4. The type E plants are in a region of area 3; the type D plants are in a region of area 1.
|
527 |
-
|
528 |
-
Each garden plot is a square and so has four sides. The perimeter of a region is the number of sides of garden plots in the region that do not touch another garden plot in the same region. The type A and C plants are each in a region with perimeter 10. The type B and E plants are each in a region with perimeter 8. The lone D plot forms its own region with perimeter 4.
|
529 |
-
|
530 |
-
Visually indicating the sides of plots in each region that contribute to the perimeter using - and |, the above map's regions' perimeters are measured as follows:
|
531 |
-
|
532 |
-
+-+-+-+-+
|
533 |
-
|A A A A|
|
534 |
-
+-+-+-+-+ +-+
|
535 |
-
|D|
|
536 |
-
+-+-+ +-+ +-+
|
537 |
-
|B B| |C|
|
538 |
-
+ + + +-+
|
539 |
-
|B B| |C C|
|
540 |
-
+-+-+ +-+ +
|
541 |
-
|C|
|
542 |
-
+-+-+-+ +-+
|
543 |
-
|E E E|
|
544 |
-
+-+-+-+
|
545 |
-
Plants of the same type can appear in multiple separate regions, and regions can even appear within other regions. For example:
|
546 |
-
|
547 |
-
OOOOO
|
548 |
-
OXOXO
|
549 |
-
OOOOO
|
550 |
-
OXOXO
|
551 |
-
OOOOO
|
552 |
-
The above map contains five regions, one containing all of the O garden plots, and the other four each containing a single X plot.
|
553 |
-
|
554 |
-
The four X regions each have area 1 and perimeter 4. The region containing 21 type O plants is more complicated; in addition to its outer edge contributing a perimeter of 20, its boundary with each X region contributes an additional 4 to its perimeter, for a total perimeter of 36.
|
555 |
-
|
556 |
-
Due to ""modern"" business practices, the price of fence required for a region is found by multiplying that region's area by its perimeter. The total price of fencing all regions on a map is found by adding together the price of fence for every region on the map.
|
557 |
-
|
558 |
-
In the first example, region A has price 4 * 10 = 40, region B has price 4 * 8 = 32, region C has price 4 * 10 = 40, region D has price 1 * 4 = 4, and region E has price 3 * 8 = 24. So, the total price for the first example is 140.
|
559 |
-
|
560 |
-
In the second example, the region with all of the O plants has price 21 * 36 = 756, and each of the four smaller X regions has price 1 * 4 = 4, for a total price of 772 (756 + 4 + 4 + 4 + 4).
|
561 |
-
|
562 |
-
Here's a larger example:
|
563 |
-
|
564 |
-
RRRRIICCFF
|
565 |
-
RRRRIICCCF
|
566 |
-
VVRRRCCFFF
|
567 |
-
VVRCCCJFFF
|
568 |
-
VVVVCJJCFE
|
569 |
-
VVIVCCJJEE
|
570 |
-
VVIIICJJEE
|
571 |
-
MIIIIIJJEE
|
572 |
-
MIIISIJEEE
|
573 |
-
MMMISSJEEE
|
574 |
-
It contains:
|
575 |
-
|
576 |
-
A region of R plants with price 12 * 18 = 216.
|
577 |
-
A region of I plants with price 4 * 8 = 32.
|
578 |
-
A region of C plants with price 14 * 28 = 392.
|
579 |
-
A region of F plants with price 10 * 18 = 180.
|
580 |
-
A region of V plants with price 13 * 20 = 260.
|
581 |
-
A region of J plants with price 11 * 20 = 220.
|
582 |
-
A region of C plants with price 1 * 4 = 4.
|
583 |
-
A region of E plants with price 13 * 18 = 234.
|
584 |
-
A region of I plants with price 14 * 22 = 308.
|
585 |
-
A region of M plants with price 5 * 12 = 60.
|
586 |
-
A region of S plants with price 3 * 8 = 24.
|
587 |
-
So, it has a total price of 1930.
|
588 |
-
|
589 |
-
What is the total price of fencing all regions on your map?
|
590 |
-
",solution3,Python,"[[""/test_cases/day12/test_case_1_input.txt"",""/test_cases/day12/test_case_1_output.txt""],
|
591 |
-
[""/test_cases/day12/test_case_2_input.txt"",""/test_cases/day12/test_case_2_output.txt""],
|
592 |
-
[""/test_cases/day12/test_case_3_input.txt"",""/test_cases/day12/test_case_3_output.txt""]]"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|