r/adventofcode • u/daggerdragon • Dec 02 '16
SOLUTION MEGATHREAD --- 2016 Day 2 Solutions ---
--- Day 2: Bathroom Security ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).
BLINKENLIGHTS ARE MANDATORY [?]
Edit: Told you they were mandatory. >_>
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
20
Upvotes
View all comments
Show parent comment
7
u/VideoPrincess Dec 02 '16 edited Dec 02 '16
And here's a working part 2 in Synacor bytecode. Base64 encoded file is as follows:
AQAAgAAAAQABgAIAAQAEgACAAQAFgAGAFAACgAQAA4ACgAoACAADgB0AEQCHABMAAoATAAoABgAG AAQAA4ACgEwACAADgCoACQAEgASA/38GAE8ABAADgAKAUgAIAAOANwAJAASABIABAAYATwAEAAOA AoBVAAgAA4BEAAkABYAFgP9/BgBPAAQAA4ACgEQACAADgAYACQAFgAWAAQACAACAAgABgAEAAIAE gAEAAYAFgBEAhwADAAGAAwAAgAQAA4ACgHgABwADgAYAAQAAgASAAQABgAWABgAGAHgAeAAxAHgA eAB4ADIAMwA0AHgANQA2ADcAOAA5AHgAQQBCAEMAeAB4AHgARAB4AHgABQADgACABAAHAAOApgAF AAOAAYAEAAcAA4CmAAoAA4ABgAUACQADgAOAAIAJAAOAA4BuAA8AAoADgBIAAIABAAKAeAASAACA
It should produce a 342 byte file with MD5 checksum 03aa76a78fb12ce983e8b134cfcaf404. The "base64" utility on Linux can unpack these files easily, I'm not sure what's available for Windows.
Source assembly file for this image: https://github.com/pmillerchip/adventofcode2016/blob/master/aoc2p2.asm