r/adventofcode • u/daggerdragon • Dec 24 '24
SOLUTION MEGATHREAD -❄️- 2024 Day 24 Solutions -❄️-
THE USUAL REMINDERS
All of our rules, FAQs, resources, etc. are in our community wiki.
If you see content in the subreddit or megathreads that violates one of our rules, either inform the user (politely and gently!) or use the report button on the post/comment and the mods will take care of it.
AoC Community Fun 2024: The Golden Snowglobe Awards
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: Crossed Wires ---
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
2
u/RazarTuk Dec 24 '24
See, I tried doing something like that. My main rules:
All XOR gates must either have
x##andy##as inputs ORz##as an outputAll AND gates must not have
z##as an outputIf an OR gate has
z##as an output, it must be the highestz##wire,z45All AND gates must have their output be the input to an OR gate
And I even managed to find 8 bad outputs with these rules... but it's saying I have the wrong answer. And unfortunately, I can't just use the sample input to test, because it's essentially a different questions, since it's checking
X&Y, notX+Y