Optimised day 19
[advent-of-code-22.git] / problems / day19.html
1 <!DOCTYPE html>
2 <html lang="en-us">
3 <head>
4 <meta charset="utf-8"/>
5 <title>Day 19 - Advent of Code 2022</title>
6 <!--[if lt IE 9]><script src="/static/html5.js"></script><![endif]-->
7 <link href='//fonts.googleapis.com/css?family=Source+Code+Pro:300&subset=latin,latin-ext' rel='stylesheet' type='text/css'/>
8 <link rel="stylesheet" type="text/css" href="/static/style.css?30"/>
9 <link rel="stylesheet alternate" type="text/css" href="/static/highcontrast.css?0" title="High Contrast"/>
10 <link rel="shortcut icon" href="/favicon.png"/>
11 <script>window.addEventListener('click', function(e,s,r){if(e.target.nodeName==='CODE'&&e.detail===3){s=window.getSelection();s.removeAllRanges();r=document.createRange();r.selectNodeContents(e.target);s.addRange(r);}});</script>
12 </head><!--
13
14
15
16
17 Oh, hello! Funny seeing you here.
18
19 I appreciate your enthusiasm, but you aren't going to find much down here.
20 There certainly aren't clues to any of the puzzles. The best surprises don't
21 even appear in the source until you unlock them for real.
22
23 Please be careful with automated requests; I'm not a massive company, and I can
24 only take so much traffic. Please be considerate so that everyone gets to play.
25
26 If you're curious about how Advent of Code works, it's running on some custom
27 Perl code. Other than a few integrations (auth, analytics, social media), I
28 built the whole thing myself, including the design, animations, prose, and all
29 of the puzzles.
30
31 The puzzles are most of the work; preparing a new calendar and a new set of
32 puzzles each year takes all of my free time for 4-5 months. A lot of effort
33 went into building this thing - I hope you're enjoying playing it as much as I
34 enjoyed making it for you!
35
36 If you'd like to hang out, I'm @ericwastl on Twitter.
37
38 - Eric Wastl
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89 -->
90 <body>
91 <header><div><h1 class="title-global"><a href="/">Advent of Code</a></h1><nav><ul><li><a href="/2022/about">[About]</a></li><li><a href="/2022/events">[Events]</a></li><li><a href="https://teespring.com/stores/advent-of-code" target="_blank">[Shop]</a></li><li><a href="/2022/settings">[Settings]</a></li><li><a href="/2022/auth/logout">[Log Out]</a></li></ul></nav><div class="user">Neil Smith <a href="/2022/support" class="supporter-badge" title="Advent of Code Supporter">(AoC++)</a> <span class="star-count">38*</span></div></div><div><h1 class="title-event">&nbsp;&nbsp;&nbsp;<span class="title-event-wrap">int y=</span><a href="/2022">2022</a><span class="title-event-wrap">;</span></h1><nav><ul><li><a href="/2022">[Calendar]</a></li><li><a href="/2022/support">[AoC++]</a></li><li><a href="/2022/sponsors">[Sponsors]</a></li><li><a href="/2022/leaderboard">[Leaderboard]</a></li><li><a href="/2022/stats">[Stats]</a></li></ul></nav></div></header>
92
93 <div id="sidebar">
94 <div id="sponsor"><div class="quiet">Our <a href="/2022/sponsors">sponsors</a> help make Advent of Code possible:</div><div class="sponsor"><a href="https://www.axis.com/" target="_blank" onclick="if(ga)ga('send','event','sponsor','sidebar',this.href);" rel="noopener">Axis</a> - All we want for Christmas is your application, pls! ----------------- &lt;embedded, cloud, Machine learning, fullstack&gt; our cameras require it all</div></div>
95 </div><!--/sidebar-->
96
97 <main>
98 <article class="day-desc"><h2>--- Day 19: Not Enough Minerals ---</h2><p>Your scans show that the lava did indeed form obsidian!</p>
99 <p>The wind has changed direction enough to stop sending lava droplets toward you, so you and the elephants exit the cave. As you do, you notice a collection of <a href="https://en.wikipedia.org/wiki/Geode" target="_blank">geodes</a> around the pond. Perhaps you could use the obsidian to create some <em>geode-cracking robots</em> and break them open?</p>
100 <p>To collect the obsidian from the bottom of the pond, you'll need waterproof <em>obsidian-collecting robots</em>. Fortunately, there is an abundant amount of clay nearby that you can use to make them waterproof.</p>
101 <p>In order to harvest the clay, you'll need special-purpose <em>clay-collecting robots</em>. To make any type of robot, you'll need <em>ore</em>, which is also plentiful but in the opposite direction from the clay.</p>
102 <p>Collecting ore requires <em>ore-collecting robots</em> with big drills. Fortunately, <em>you have exactly one ore-collecting robot</em> in your pack that you can use to <span title="If You Give A Mouse An Ore-Collecting Robot">kickstart</span> the whole operation.</p>
103 <p>Each robot can collect 1 of its resource type per minute. It also takes one minute for the robot factory (also conveniently from your pack) to construct any type of robot, although it consumes the necessary resources available when construction begins.</p>
104 <p>The robot factory has many <em>blueprints</em> (your puzzle input) you can choose from, but once you've configured it with a blueprint, you can't change it. You'll need to work out which blueprint is best.</p>
105 <p>For example:</p>
106 <pre><code>Blueprint 1:
107 Each ore robot costs 4 ore.
108 Each clay robot costs 2 ore.
109 Each obsidian robot costs 3 ore and 14 clay.
110 Each geode robot costs 2 ore and 7 obsidian.
111
112 Blueprint 2:
113 Each ore robot costs 2 ore.
114 Each clay robot costs 3 ore.
115 Each obsidian robot costs 3 ore and 8 clay.
116 Each geode robot costs 3 ore and 12 obsidian.
117 </code></pre>
118 <p>(Blueprints have been line-wrapped here for legibility. The robot factory's actual assortment of blueprints are provided one blueprint per line.)</p>
119 <p>The elephants are starting to look hungry, so you shouldn't take too long; you need to figure out which blueprint would maximize the number of opened geodes after <em>24 minutes</em> by figuring out which robots to build and when to build them.</p>
120 <p>Using blueprint 1 in the example above, the largest number of geodes you could open in 24 minutes is <code><em>9</em></code>. One way to achieve that is:</p>
121 <pre><code>== Minute 1 ==
122 1 ore-collecting robot collects 1 ore; you now have 1 ore.
123
124 == Minute 2 ==
125 1 ore-collecting robot collects 1 ore; you now have 2 ore.
126
127 == Minute 3 ==
128 Spend 2 ore to start building a clay-collecting robot.
129 1 ore-collecting robot collects 1 ore; you now have 1 ore.
130 The new clay-collecting robot is ready; you now have 1 of them.
131
132 == Minute 4 ==
133 1 ore-collecting robot collects 1 ore; you now have 2 ore.
134 1 clay-collecting robot collects 1 clay; you now have 1 clay.
135
136 == Minute 5 ==
137 Spend 2 ore to start building a clay-collecting robot.
138 1 ore-collecting robot collects 1 ore; you now have 1 ore.
139 1 clay-collecting robot collects 1 clay; you now have 2 clay.
140 The new clay-collecting robot is ready; you now have 2 of them.
141
142 == Minute 6 ==
143 1 ore-collecting robot collects 1 ore; you now have 2 ore.
144 2 clay-collecting robots collect 2 clay; you now have 4 clay.
145
146 == Minute 7 ==
147 Spend 2 ore to start building a clay-collecting robot.
148 1 ore-collecting robot collects 1 ore; you now have 1 ore.
149 2 clay-collecting robots collect 2 clay; you now have 6 clay.
150 The new clay-collecting robot is ready; you now have 3 of them.
151
152 == Minute 8 ==
153 1 ore-collecting robot collects 1 ore; you now have 2 ore.
154 3 clay-collecting robots collect 3 clay; you now have 9 clay.
155
156 == Minute 9 ==
157 1 ore-collecting robot collects 1 ore; you now have 3 ore.
158 3 clay-collecting robots collect 3 clay; you now have 12 clay.
159
160 == Minute 10 ==
161 1 ore-collecting robot collects 1 ore; you now have 4 ore.
162 3 clay-collecting robots collect 3 clay; you now have 15 clay.
163
164 == Minute 11 ==
165 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
166 1 ore-collecting robot collects 1 ore; you now have 2 ore.
167 3 clay-collecting robots collect 3 clay; you now have 4 clay.
168 The new obsidian-collecting robot is ready; you now have 1 of them.
169
170 == Minute 12 ==
171 Spend 2 ore to start building a clay-collecting robot.
172 1 ore-collecting robot collects 1 ore; you now have 1 ore.
173 3 clay-collecting robots collect 3 clay; you now have 7 clay.
174 1 obsidian-collecting robot collects 1 obsidian; you now have 1 obsidian.
175 The new clay-collecting robot is ready; you now have 4 of them.
176
177 == Minute 13 ==
178 1 ore-collecting robot collects 1 ore; you now have 2 ore.
179 4 clay-collecting robots collect 4 clay; you now have 11 clay.
180 1 obsidian-collecting robot collects 1 obsidian; you now have 2 obsidian.
181
182 == Minute 14 ==
183 1 ore-collecting robot collects 1 ore; you now have 3 ore.
184 4 clay-collecting robots collect 4 clay; you now have 15 clay.
185 1 obsidian-collecting robot collects 1 obsidian; you now have 3 obsidian.
186
187 == Minute 15 ==
188 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
189 1 ore-collecting robot collects 1 ore; you now have 1 ore.
190 4 clay-collecting robots collect 4 clay; you now have 5 clay.
191 1 obsidian-collecting robot collects 1 obsidian; you now have 4 obsidian.
192 The new obsidian-collecting robot is ready; you now have 2 of them.
193
194 == Minute 16 ==
195 1 ore-collecting robot collects 1 ore; you now have 2 ore.
196 4 clay-collecting robots collect 4 clay; you now have 9 clay.
197 2 obsidian-collecting robots collect 2 obsidian; you now have 6 obsidian.
198
199 == Minute 17 ==
200 1 ore-collecting robot collects 1 ore; you now have 3 ore.
201 4 clay-collecting robots collect 4 clay; you now have 13 clay.
202 2 obsidian-collecting robots collect 2 obsidian; you now have 8 obsidian.
203
204 == Minute 18 ==
205 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
206 1 ore-collecting robot collects 1 ore; you now have 2 ore.
207 4 clay-collecting robots collect 4 clay; you now have 17 clay.
208 2 obsidian-collecting robots collect 2 obsidian; you now have 3 obsidian.
209 The new geode-cracking robot is ready; you now have 1 of them.
210
211 == Minute 19 ==
212 1 ore-collecting robot collects 1 ore; you now have 3 ore.
213 4 clay-collecting robots collect 4 clay; you now have 21 clay.
214 2 obsidian-collecting robots collect 2 obsidian; you now have 5 obsidian.
215 1 geode-cracking robot cracks 1 geode; you now have 1 open geode.
216
217 == Minute 20 ==
218 1 ore-collecting robot collects 1 ore; you now have 4 ore.
219 4 clay-collecting robots collect 4 clay; you now have 25 clay.
220 2 obsidian-collecting robots collect 2 obsidian; you now have 7 obsidian.
221 1 geode-cracking robot cracks 1 geode; you now have 2 open geodes.
222
223 == Minute 21 ==
224 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
225 1 ore-collecting robot collects 1 ore; you now have 3 ore.
226 4 clay-collecting robots collect 4 clay; you now have 29 clay.
227 2 obsidian-collecting robots collect 2 obsidian; you now have 2 obsidian.
228 1 geode-cracking robot cracks 1 geode; you now have 3 open geodes.
229 The new geode-cracking robot is ready; you now have 2 of them.
230
231 == Minute 22 ==
232 1 ore-collecting robot collects 1 ore; you now have 4 ore.
233 4 clay-collecting robots collect 4 clay; you now have 33 clay.
234 2 obsidian-collecting robots collect 2 obsidian; you now have 4 obsidian.
235 2 geode-cracking robots crack 2 geodes; you now have 5 open geodes.
236
237 == Minute 23 ==
238 1 ore-collecting robot collects 1 ore; you now have 5 ore.
239 4 clay-collecting robots collect 4 clay; you now have 37 clay.
240 2 obsidian-collecting robots collect 2 obsidian; you now have 6 obsidian.
241 2 geode-cracking robots crack 2 geodes; you now have 7 open geodes.
242
243 == Minute 24 ==
244 1 ore-collecting robot collects 1 ore; you now have 6 ore.
245 4 clay-collecting robots collect 4 clay; you now have 41 clay.
246 2 obsidian-collecting robots collect 2 obsidian; you now have 8 obsidian.
247 2 geode-cracking robots crack 2 geodes; you now have 9 open geodes.
248 </code></pre>
249 <p>However, by using blueprint 2 in the example above, you could do even better: the largest number of geodes you could open in 24 minutes is <code><em>12</em></code>.</p>
250 <p>Determine the <em>quality level</em> of each blueprint by <em>multiplying that blueprint's ID number</em> with the largest number of geodes that can be opened in 24 minutes using that blueprint. In this example, the first blueprint has ID 1 and can open 9 geodes, so its quality level is <code><em>9</em></code>. The second blueprint has ID 2 and can open 12 geodes, so its quality level is <code><em>24</em></code>. Finally, if you <em>add up the quality levels</em> of all of the blueprints in the list, you get <code><em>33</em></code>.</p>
251 <p>Determine the quality level of each blueprint using the largest number of geodes it could produce in 24 minutes. <em>What do you get if you add up the quality level of all of the blueprints in your list?</em></p>
252 </article>
253 <p>Your puzzle answer was <code>1199</code>.</p><article class="day-desc"><h2 id="part2">--- Part Two ---</h2><p>While you were choosing the best blueprint, the elephants found some food on their own, so you're not in as much of a hurry; you figure you probably have <em>32 minutes</em> before the wind changes direction again and you'll need to get out of range of the erupting volcano.</p>
254 <p>Unfortunately, one of the elephants <em>ate most of your blueprint list</em>! Now, only the first three blueprints in your list are intact.</p>
255 <p>In 32 minutes, the largest number of geodes blueprint 1 (from the example above) can open is <code><em>56</em></code>. One way to achieve that is:</p>
256 <pre><code>== Minute 1 ==
257 1 ore-collecting robot collects 1 ore; you now have 1 ore.
258
259 == Minute 2 ==
260 1 ore-collecting robot collects 1 ore; you now have 2 ore.
261
262 == Minute 3 ==
263 1 ore-collecting robot collects 1 ore; you now have 3 ore.
264
265 == Minute 4 ==
266 1 ore-collecting robot collects 1 ore; you now have 4 ore.
267
268 == Minute 5 ==
269 Spend 4 ore to start building an ore-collecting robot.
270 1 ore-collecting robot collects 1 ore; you now have 1 ore.
271 The new ore-collecting robot is ready; you now have 2 of them.
272
273 == Minute 6 ==
274 2 ore-collecting robots collect 2 ore; you now have 3 ore.
275
276 == Minute 7 ==
277 Spend 2 ore to start building a clay-collecting robot.
278 2 ore-collecting robots collect 2 ore; you now have 3 ore.
279 The new clay-collecting robot is ready; you now have 1 of them.
280
281 == Minute 8 ==
282 Spend 2 ore to start building a clay-collecting robot.
283 2 ore-collecting robots collect 2 ore; you now have 3 ore.
284 1 clay-collecting robot collects 1 clay; you now have 1 clay.
285 The new clay-collecting robot is ready; you now have 2 of them.
286
287 == Minute 9 ==
288 Spend 2 ore to start building a clay-collecting robot.
289 2 ore-collecting robots collect 2 ore; you now have 3 ore.
290 2 clay-collecting robots collect 2 clay; you now have 3 clay.
291 The new clay-collecting robot is ready; you now have 3 of them.
292
293 == Minute 10 ==
294 Spend 2 ore to start building a clay-collecting robot.
295 2 ore-collecting robots collect 2 ore; you now have 3 ore.
296 3 clay-collecting robots collect 3 clay; you now have 6 clay.
297 The new clay-collecting robot is ready; you now have 4 of them.
298
299 == Minute 11 ==
300 Spend 2 ore to start building a clay-collecting robot.
301 2 ore-collecting robots collect 2 ore; you now have 3 ore.
302 4 clay-collecting robots collect 4 clay; you now have 10 clay.
303 The new clay-collecting robot is ready; you now have 5 of them.
304
305 == Minute 12 ==
306 Spend 2 ore to start building a clay-collecting robot.
307 2 ore-collecting robots collect 2 ore; you now have 3 ore.
308 5 clay-collecting robots collect 5 clay; you now have 15 clay.
309 The new clay-collecting robot is ready; you now have 6 of them.
310
311 == Minute 13 ==
312 Spend 2 ore to start building a clay-collecting robot.
313 2 ore-collecting robots collect 2 ore; you now have 3 ore.
314 6 clay-collecting robots collect 6 clay; you now have 21 clay.
315 The new clay-collecting robot is ready; you now have 7 of them.
316
317 == Minute 14 ==
318 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
319 2 ore-collecting robots collect 2 ore; you now have 2 ore.
320 7 clay-collecting robots collect 7 clay; you now have 14 clay.
321 The new obsidian-collecting robot is ready; you now have 1 of them.
322
323 == Minute 15 ==
324 2 ore-collecting robots collect 2 ore; you now have 4 ore.
325 7 clay-collecting robots collect 7 clay; you now have 21 clay.
326 1 obsidian-collecting robot collects 1 obsidian; you now have 1 obsidian.
327
328 == Minute 16 ==
329 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
330 2 ore-collecting robots collect 2 ore; you now have 3 ore.
331 7 clay-collecting robots collect 7 clay; you now have 14 clay.
332 1 obsidian-collecting robot collects 1 obsidian; you now have 2 obsidian.
333 The new obsidian-collecting robot is ready; you now have 2 of them.
334
335 == Minute 17 ==
336 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
337 2 ore-collecting robots collect 2 ore; you now have 2 ore.
338 7 clay-collecting robots collect 7 clay; you now have 7 clay.
339 2 obsidian-collecting robots collect 2 obsidian; you now have 4 obsidian.
340 The new obsidian-collecting robot is ready; you now have 3 of them.
341
342 == Minute 18 ==
343 2 ore-collecting robots collect 2 ore; you now have 4 ore.
344 7 clay-collecting robots collect 7 clay; you now have 14 clay.
345 3 obsidian-collecting robots collect 3 obsidian; you now have 7 obsidian.
346
347 == Minute 19 ==
348 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
349 2 ore-collecting robots collect 2 ore; you now have 3 ore.
350 7 clay-collecting robots collect 7 clay; you now have 7 clay.
351 3 obsidian-collecting robots collect 3 obsidian; you now have 10 obsidian.
352 The new obsidian-collecting robot is ready; you now have 4 of them.
353
354 == Minute 20 ==
355 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
356 2 ore-collecting robots collect 2 ore; you now have 3 ore.
357 7 clay-collecting robots collect 7 clay; you now have 14 clay.
358 4 obsidian-collecting robots collect 4 obsidian; you now have 7 obsidian.
359 The new geode-cracking robot is ready; you now have 1 of them.
360
361 == Minute 21 ==
362 Spend 3 ore and 14 clay to start building an obsidian-collecting robot.
363 2 ore-collecting robots collect 2 ore; you now have 2 ore.
364 7 clay-collecting robots collect 7 clay; you now have 7 clay.
365 4 obsidian-collecting robots collect 4 obsidian; you now have 11 obsidian.
366 1 geode-cracking robot cracks 1 geode; you now have 1 open geode.
367 The new obsidian-collecting robot is ready; you now have 5 of them.
368
369 == Minute 22 ==
370 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
371 2 ore-collecting robots collect 2 ore; you now have 2 ore.
372 7 clay-collecting robots collect 7 clay; you now have 14 clay.
373 5 obsidian-collecting robots collect 5 obsidian; you now have 9 obsidian.
374 1 geode-cracking robot cracks 1 geode; you now have 2 open geodes.
375 The new geode-cracking robot is ready; you now have 2 of them.
376
377 == Minute 23 ==
378 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
379 2 ore-collecting robots collect 2 ore; you now have 2 ore.
380 7 clay-collecting robots collect 7 clay; you now have 21 clay.
381 5 obsidian-collecting robots collect 5 obsidian; you now have 7 obsidian.
382 2 geode-cracking robots crack 2 geodes; you now have 4 open geodes.
383 The new geode-cracking robot is ready; you now have 3 of them.
384
385 == Minute 24 ==
386 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
387 2 ore-collecting robots collect 2 ore; you now have 2 ore.
388 7 clay-collecting robots collect 7 clay; you now have 28 clay.
389 5 obsidian-collecting robots collect 5 obsidian; you now have 5 obsidian.
390 3 geode-cracking robots crack 3 geodes; you now have 7 open geodes.
391 The new geode-cracking robot is ready; you now have 4 of them.
392
393 == Minute 25 ==
394 2 ore-collecting robots collect 2 ore; you now have 4 ore.
395 7 clay-collecting robots collect 7 clay; you now have 35 clay.
396 5 obsidian-collecting robots collect 5 obsidian; you now have 10 obsidian.
397 4 geode-cracking robots crack 4 geodes; you now have 11 open geodes.
398
399 == Minute 26 ==
400 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
401 2 ore-collecting robots collect 2 ore; you now have 4 ore.
402 7 clay-collecting robots collect 7 clay; you now have 42 clay.
403 5 obsidian-collecting robots collect 5 obsidian; you now have 8 obsidian.
404 4 geode-cracking robots crack 4 geodes; you now have 15 open geodes.
405 The new geode-cracking robot is ready; you now have 5 of them.
406
407 == Minute 27 ==
408 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
409 2 ore-collecting robots collect 2 ore; you now have 4 ore.
410 7 clay-collecting robots collect 7 clay; you now have 49 clay.
411 5 obsidian-collecting robots collect 5 obsidian; you now have 6 obsidian.
412 5 geode-cracking robots crack 5 geodes; you now have 20 open geodes.
413 The new geode-cracking robot is ready; you now have 6 of them.
414
415 == Minute 28 ==
416 2 ore-collecting robots collect 2 ore; you now have 6 ore.
417 7 clay-collecting robots collect 7 clay; you now have 56 clay.
418 5 obsidian-collecting robots collect 5 obsidian; you now have 11 obsidian.
419 6 geode-cracking robots crack 6 geodes; you now have 26 open geodes.
420
421 == Minute 29 ==
422 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
423 2 ore-collecting robots collect 2 ore; you now have 6 ore.
424 7 clay-collecting robots collect 7 clay; you now have 63 clay.
425 5 obsidian-collecting robots collect 5 obsidian; you now have 9 obsidian.
426 6 geode-cracking robots crack 6 geodes; you now have 32 open geodes.
427 The new geode-cracking robot is ready; you now have 7 of them.
428
429 == Minute 30 ==
430 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
431 2 ore-collecting robots collect 2 ore; you now have 6 ore.
432 7 clay-collecting robots collect 7 clay; you now have 70 clay.
433 5 obsidian-collecting robots collect 5 obsidian; you now have 7 obsidian.
434 7 geode-cracking robots crack 7 geodes; you now have 39 open geodes.
435 The new geode-cracking robot is ready; you now have 8 of them.
436
437 == Minute 31 ==
438 Spend 2 ore and 7 obsidian to start building a geode-cracking robot.
439 2 ore-collecting robots collect 2 ore; you now have 6 ore.
440 7 clay-collecting robots collect 7 clay; you now have 77 clay.
441 5 obsidian-collecting robots collect 5 obsidian; you now have 5 obsidian.
442 8 geode-cracking robots crack 8 geodes; you now have 47 open geodes.
443 The new geode-cracking robot is ready; you now have 9 of them.
444
445 == Minute 32 ==
446 2 ore-collecting robots collect 2 ore; you now have 8 ore.
447 7 clay-collecting robots collect 7 clay; you now have 84 clay.
448 5 obsidian-collecting robots collect 5 obsidian; you now have 10 obsidian.
449 9 geode-cracking robots crack 9 geodes; you now have 56 open geodes.
450 </code></pre>
451 <p>However, blueprint 2 from the example above is still better; using it, the largest number of geodes you could open in 32 minutes is <code><em>62</em></code>.</p>
452 <p>You <em>no longer have enough blueprints to worry about quality levels</em>. Instead, for each of the first three blueprints, determine the largest number of geodes you could open; then, multiply these three values together.</p>
453 <p>Don't worry about quality levels; instead, just determine the largest number of geodes you could open using each of the first three blueprints. <em>What do you get if you multiply these numbers together?</em></p>
454 </article>
455 <p>Your puzzle answer was <code>3510</code>.</p><p class="day-success">Both parts of this puzzle are complete! They provide two gold stars: **</p>
456 <p>At this point, you should <a href="/2022">return to your Advent calendar</a> and try another puzzle.</p>
457 <p>If you still want to see it, you can <a href="19/input" target="_blank">get your puzzle input</a>.</p>
458 <p>You can also <span class="share">[Share<span class="share-content">on
459 <a href="https://twitter.com/intent/tweet?text=I%27ve+completed+%22Not+Enough+Minerals%22+%2D+Day+19+%2D+Advent+of+Code+2022&amp;url=https%3A%2F%2Fadventofcode%2Ecom%2F2022%2Fday%2F19&amp;related=ericwastl&amp;hashtags=AdventOfCode" target="_blank">Twitter</a>
460 <a href="javascript:void(0);" onclick="var mastodon_instance=prompt('Mastodon Instance / Server Name?'); if(typeof mastodon_instance==='string' && mastodon_instance.length){this.href='https://'+mastodon_instance+'/share?text=I%27ve+completed+%22Not+Enough+Minerals%22+%2D+Day+19+%2D+Advent+of+Code+2022+%23AdventOfCode+https%3A%2F%2Fadventofcode%2Ecom%2F2022%2Fday%2F19'}else{return false;}" target="_blank">Mastodon</a
461 ></span>]</span> this puzzle.</p>
462 </main>
463
464 <!-- ga -->
465 <script>
466 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
467 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
468 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
469 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
470 ga('create', 'UA-69522494-1', 'auto');
471 ga('set', 'anonymizeIp', true);
472 ga('send', 'pageview');
473 </script>
474 <!-- /ga -->
475 </body>
476 </html>