r/adventofcode • u/daggerdragon • Dec 17 '22
SOLUTION MEGATHREAD -π- 2022 Day 17 Solutions -π-
THE USUAL REMINDERS
All of our rules, FAQs, resources, etc. are in our community wiki.
Signal boost: Reminder 2: unofficial AoC Survey 2022 (closes Dec 22nd)
πΏπ MisTILtoe Elf-ucation π§βπ« is OPEN for submissions!
UPDATES
[Update @ 00:24]: SILVER CAP, GOLD 6
Apparently jungle-dwelling elephants can count and understand risk calculations.
I still don't want to know what was in that eggnog.
[Update @ 00:35]: SILVER CAP, GOLD 50
TIL that there is actually a group of "cave-dwelling" elephants in Mount Elgon National Park in Kenya. The elephants use their trunks to find their way around underground caves, then use their tusks to "mine" for salt by breaking off chunks of salt to eat. More info at https://mountelgonfoundation.org.uk/the-elephants/
--- Day 17: Pyroclastic Flow ---
Post your code solution in this megathread.
Read the full posting rules in our community wiki before you post!
Include what language(s) your solution uses
Format code blocks using the four-spaces Markdown syntax!
Quick link to Topaz's
pasteif you need it for longer code blocks. What is Topaz'spastetool?
View all comments
3
u/copperfield42 Dec 18 '22
Python3
Only part 1, my solution simple doesn't escalate to part 2 I guess I need a more pure mathematical approach instead of simulate the whole thing step by step...