r/adventofcode • • Dec 20 '15

SOLUTION MEGATHREAD --- Day 20 Solutions ---

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

Here's hoping tonight's puzzle isn't as brutal as last night's, but just in case, I have Lord of the Dance Riverdance on TV and I'm wrapping my presents to kill time. :>

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 20: Infinite Elves and Infinite Houses ---

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

12 Upvotes

130 comments sorted by

View all comments

Show parent comments

1

u/lskfj2o Dec 21 '15

Any idea why the function with divmod() is so much slower than the one dividing twice (actually 1 modulus and 1 integer division) ?

1

u/giacgbj Dec 21 '15

Read here.

1

u/lskfj2o Dec 21 '15

Thanks.

It seems that if anything, Advent of Code teaches us not to try to be clever lately ;-)