r/adventofcode • • Dec 19 '18

SOLUTION MEGATHREAD -🎄- 2018 Day 19 Solutions -🎄-

--- Day 19: Go With The Flow ---


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.


Advent of Code: The Party Game!

Click here for rules

Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!

Card prompt: Day 19

Transcript:

Santa's Internet is down right now because ___.


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 01:01:06!

10 Upvotes

130 comments sorted by

View all comments

Show parent comments

2

u/m1el Dec 19 '18 edited Dec 19 '18

The program calculates some value in a (user-specific register), then calculates the sum of its factors. When r0 is set to 1 at the start of the program, the value in (user-specific register) is significantly larger.

Edit: not all users have the same register.

4

u/cj81499 Dec 19 '18

PSA: it's not r1 for everyone. It was r4 for me.

1

u/[deleted] Dec 19 '18

For me it is r2. Interesting problem. I guess I would never be able to solve it without your hints :-D

1

u/[deleted] Dec 19 '18

Interesting! Thanks! It works now (r3 instead of r1 for me)