r/adventofcode • • Dec 02 '20

SOLUTION MEGATHREAD -šŸŽ„- 2020 Day 02 Solutions -šŸŽ„-

--- Day 2: Password Philosophy ---


Advent of Code 2020: Gettin' Crafty With It


Post your solution in this megathread. Include what language(s) your solution uses! If you need a refresher, the full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.

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.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:02:31, megathread unlocked!

100 Upvotes

1.2k comments sorted by

View all comments

Show parent comment

1

u/bcgroom Dec 02 '20

I like your aoc macro! I've been working on a __using__ macro but I like this approach, even more concise. Overall very terse solution :)

1

u/mathsaey Dec 02 '20

Thanks! If you're interested, I threw those macros (along with a mix task to fetch input) on github this year! It's available on hex too :).

2

u/bcgroom Dec 03 '20

Nice! I’m trying to use this AoC as an opportunity to learn more about macros so I want to come up with my own but I might use this as inspiration.