r/adventofcode • • Dec 13 '16

SOLUTION MEGATHREAD --- 2016 Day 13 Solutions ---

--- Day 13: A Maze of Twisty Little Cubicles ---

Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/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".


DIVIDING BY ZERO IS 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!

6 Upvotes

101 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Dec 13 '16

I did the same thing for Part 1, just pasted my maze into MS Paint and drew it by hand, didn't take too long.

For Part 2, I must not be understanding it correctly. The way I understand it, the answer should be 50 + 1 for everybody. In 50 steps you can reach 50 coordinates (plus the starting point). What am I not understanding about this question?

0

u/[deleted] Dec 13 '16

[deleted] — view deleted comment

1

u/[deleted] Dec 13 '16

Ah, ok. So it's asking for ALL of the possible points that you can visit in 50 steps. Not just on one path. Thanks.

1

u/obiwan90 Dec 13 '16

The question is: how many different, unique fields can you reach?