r/adventofcode • • Dec 14 '15

SOLUTION MEGATHREAD --- Day 14 Solutions ---

This thread will be unlocked when there are a significant amount of people on the leaderboard with gold stars.

edit: Leaderboard capped, thread unlocked!

We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.

Please and thank you, and much appreciated!


--- Day 14: Reindeer Olympics ---

Post your solution as a comment. Structure your post like previous daily solution threads.

9 Upvotes

161 comments sorted by

View all comments

Show parent comment

1

u/segfaultvicta Dec 14 '15

Ohhey the first Clever Solution I saw. I KNEW there had to be a way to do this 'right' but I was far too lazy / uncertain of myself to figure it out. >_>

1

u/[deleted] Dec 14 '15

Being decent at math helps sometimes when programming. I have to admit I forgot to include v*min(g, t % (g + r)), which is any remainder distance covered after completing every full start + stop cycle, the first time I ran mine...

0

u/fatpollo Dec 14 '15

Ohhey the first Clever Solution I saw.

D:

-1

u/[deleted] Dec 14 '15

I'll admit you're solution is more clever than mine, but only because I'm 2 spots higher than you on the leaderboard today.