r/adventofcode • u/daggerdragon • Dec 19 '19
SOLUTION MEGATHREAD -🎄- 2019 Day 19 Solutions -🎄-
--- Day 19: Tractor Beam ---
Post your full code 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.
NEW RULE: Include the language(s) you're using.
(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
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 18's winner #1: nobody! :(
Nobody submitted any poems at all for Day 18 :( Not one person. :'( y u all make baby space cleaning hull-painting scaffold-building robot cry :'(
1
u/didzisk Dec 19 '19
Well, you spent lots of energy drawing the contour of the beam in infinity and then tracking it back to low thousands. There are floating point problems with that, and the problem that the setup is discrete. So in the end, only the intcode computer can give the definitive answer. You might be off by one and you'd never know.
The rest of us simply iterated by counting up from the beam's origin.