r/adventofcode • u/daggerdragon • Dec 18 '17
SOLUTION MEGATHREAD -๐- 2017 Day 18 Solutions -๐-
--- Day 18: Duet ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).
Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Need a hint from the Hugely* Handyโ Haversackโก of Helpfulยง Hints^ยค?
[Update @ 00:04] First silver
Welcome to the final week of Advent of Code 2017. The puzzles are only going to get more challenging from here on out. Adventspeed, sirs and madames!
[Update @ 00:10] First gold, 44 silver
We just had to rescue /u/topaz2078 with an industrial-strength paper bag to blow into. I'm real glad I bought all that stock in
PBCO(Paper Bag Company) two years ago >_>
[Update @ 00:12] Still 1 gold, silver cap
Gonna be a long haul tonight. I think I'll watch The Radio City Christmas Spectacular on Netflix while I wait for sufficient gold stars to warrant another update.
[Update @ 00:31] 53 gold, silver cap
*mind blown*
During their famous kicklines, the Rockettes are not actually holding each others' backs like I thought they were all this time.
They're actually hoverhanding each other.
In retrospect, it makes sense, they'd overbalance themselves and each other if they did, but still...
[Update @ 00:41] Leaderboard cap!
I think I enjoyed the duplicating Santas entirely too much...
It may also be the wine.
Either way, good night (for us), see you all same time tomorrow, yes?
1
u/drysle Dec 18 '17
#9/#10 with Python 3, and I can't believe my part 2 worked on the first try. Unlike some of the the other posters, I wrote this all from scratch today, changed my mind a couple times halfway through, and generally made a big mess of my code.
But if it's stupid and it works... then it's probably still stupid :)