r/adventofcode • • Dec 25 '19

SOLUTION MEGATHREAD -🎄- 2019 Day 25 Solutions -🎄-

--- Day 25: Cryostasis ---


Post your full code solution using /u/topaz2078's paste or other external repo.

  • Please do NOT post your full code (unless it is very short)
  • If you do, use old.reddit's four-spaces formatting, NOT new.reddit's triple backticks formatting.
  • Include the language(s) you're using.

(Full posting rules are HERE if you need a refresher).


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.


Advent of Code's Poems for Programmers

Click here for full rules

Note: If you submit a poem, please add [POEM] somewhere nearby to make it easier for us moderators to ensure that we include your poem for voting consideration.

Day 24's winner #1: idk because am very drunk and am trying to English good enough in megathread to be understandable. Will try again tomorrow when can think good and also for 5-Day Best-of-Show and also month-wise Best-of-Show.

Many apologies. Blame my uncle and peanut butter-flavored whiskey.

Note to self: yell at uncle, then buy a bottle of that delicious peanut butter-flavored whiskey and share it with /u/topaz2078, /u/Aneurysm9, and the beta-testers >_>

ANYWAY, HERE IS YOUR WINNER FOR DAY #24: "De Morgan's Dream" by /u/DFreiberg!

Enjoy your Reddit Silver, Merry Christmas, and Happy New Year!


On the last day of AoC, my true love gave to me...

FIVE GOLDEN SILVER POEMS (and one gold because Santa Rocket Like is no longer available, sorry!)

Enjoy your Reddit Silvers/Gold, Merry Christmas, and Happy New Year!


Note from the moderators:

Day 25, everyone! That's it for Advent of Code 2019! We hope you had fun or at least learned something over these 25 days of awesome code puzzles! Keep an eye out for:


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

EDIT: Leaderboard capped, thread unlocked at 00:35:01!

MERRY CHRISTMAS TO ALL AND TO ALL A GOOD NIGHT! passes out

36 Upvotes

120 comments sorted by

View all comments

Show parent comment

3

u/phil_g Dec 25 '19

(lambda () (char-code (read-char)))

Oh, my goodness. I can't believe I didn't think of that. My output function is functionally identical to yours (I used princ instead of write-char/code-char; either works, IMHO), but for input I read an entire line with read-line, added the newline, then fed it to the Intcode program character by character. Much more work, unnecessarily.

18, 20, and the second part of 21 are still waiting for me.

I still have parts 2 of days 18, 22, and 24. Good luck!