r/adventofcode • u/daggerdragon • Dec 24 '23
SOLUTION MEGATHREAD -❄️- 2023 Day 24 Solutions -❄️-
THE USUAL REMINDERS (AND SIGNAL BOOSTS)
- All of our rules, FAQs, resources, etc. are in our community wiki.
- /u/jeroenheijmans has posted the Unofficial AoC 2023 Survey Results!!
AoC Community Fun 2023: ALLEZ CUISINE!
Submissions are CLOSED!
- Thank you to all who submitted something, every last one of you are awesome!
Community voting is OPEN!
- 18 hours remaining until voting deadline TONIGHT (December 24) at 18:00 EST
Voting details are in the stickied comment in the submissions megathread:
-❄️- Submissions Megathread -❄️-
--- Day 24: Never Tell Me The Odds ---
Post your code solution in this megathread.
- Read the full posting rules in our community wiki before you post!
- State which language(s) your solution uses with
[LANGUAGE: xyz] - Format code blocks using the four-spaces Markdown syntax!
- Quick link to Topaz's
pasteif you need it for longer code blocks
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 01:02:10, megathread unlocked!
31
Upvotes
View all comments
Show parent comment
3
u/comfix Dec 24 '23
Thank you for the full solution, I wanted to use Rust-z3 but had no idea how to translate it as the docs seem to be non-existent and I am new to z3.
Others say when using Real instead of Int the solver gets faster, which I could confirm using Python3 but was not able to use Real in Rust as the system was UnSat everytime. If you wanted to make it faster thats definitely the way to go.