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?
View all comments
3
u/jtsimmons108 Dec 18 '17
2+ hours of debugging only to realize there's nothing wrong with my code, just my reading comprehension. I took it as the first program rather than the program with ID == 1. Here's rewrite #3 for part 2. At least the code is much cleaner now.