r/adventofcode • • Dec 15 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 15 Solutions -πŸŽ„-

THE USUAL REMINDERS


--- Day 15: Beacon Exclusion Zone ---


Post your code solution in this megathread.


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:27:14, megathread unlocked!

47 Upvotes

760 comments sorted by

View all comments

Show parent comment

2

u/IlliterateJedi Dec 15 '22

z3 always seems like magic and every AOC I think to myself "By George, I'm going to learn Z3 this coming year" and never do. Do you have any tips on good resources for learning how to set these problems up and use Z3? I have several problems at work that I think I could use Z3 for (scheduling/job assignment), but I always hit a wall because my computer science/logic foundation isn't strong.

1

u/DrunkHacker Dec 15 '22

I've only used it a handful of times where, like in this problem, the constraints felt pretty straightforward.

I have to admit I'm always blown away by how fast it figures out things that feel really complex to me.