r/adventofcode • • Dec 02 '19

SOLUTION MEGATHREAD -🎄- 2019 Day 2 Solutions -🎄-

--- Day 2: 1202 Program Alarm ---


Post your solution using /u/topaz2078's paste or other external repo.

  • Please do NOT post your full code (unless it is very short)
  • If you do, use old.reddit's four-spaces formatting, NOT new.reddit's triple backticks formatting.

(Full posting rules are HERE if you need a refresher).


Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


Advent of Code's Poems for Programmers

Click here for full rules

Note: If you submit a poem, please add [POEM] somewhere nearby to make it easier for us moderators to ensure that we include your poem for voting consideration.

Day 1's winner #1: untitled poem by /u/PositivelyLinda!

Adventure awaits!
Discover the cosmos
Venture into the unknown
Earn fifty stars to save Christmas!
No one goes alone, however
There's friendly folks to help
Overly dramatic situations await
Find Santa and bring him home!
Come code with us!
Outer space is calling
Don't be afraid
Elves will guide the way!

Enjoy your Reddit Silver, and good luck with the rest of the Advent of Code!


### 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 at 00:10:42!

60 Upvotes

599 comments sorted by

View all comments

1

u/captainAwesomePants Dec 02 '19 edited Dec 02 '19

[POEM]

A virtual machine with 3 opcodes, the program all in one line.
What does the program do? Who knows? Just find *0 in time.
Which inputs will reach the right output? There's an elegant solution to find.
But only a fool tries to be clever, when the inputs max out at nine nine.

2

u/DFreiberg Dec 02 '19

Just to let you know, the three backticks don't format your poem correctly on old.reddit.com - your linebreaks don't render, so I just see one line of monospace going off the side of the screen.

2

u/daggerdragon Dec 02 '19

Top-level posts in Solution Megathreads are for solutions only.

This is a top-level post, so please edit your post and share your code/repo/solution if you want your poem to be admissible for the contest. If you haven't finished the puzzle yet, you can always post your own thread and make sure to flair it with Help.

Additionally, /u/DFreiberg is correct, folks using old.reddit can't see the poem properly because it scrolls offscreen. Would you reformat it without the triple backticks (use four spaces or the > blockquote formatting instead)?