My own solutions and notes for the Advent of Code (2023).
Day | Note | Solved |
---|---|---|
1 | Trebuchet?! | |
2 | Cube Conundrum | |
3 | Gear Ratios | |
4 | Scratchcards | |
5 | If You Give A Seed A Fertilizer | |
6 | Wait For It | |
7 | Camel Cards | |
8 | Haunted Wasteland |
Basically all solutions read puzzle inputs from the standard input (stdin).
For input file input.txt
, run the following commands in bash
to print solutions.
$ python3 solution.py < input.txt
Source codes are tested in the following environment:
$ python3 --version
Python 3.11.6
$ neofetch
'c. dev@cmba.local
,xNMM. -----------------------
.OMMMMo OS: macOS 14.1.2 23B92 arm64
OMMM0, Host: Mac14,2
.;loddo:' loolloddol;. Kernel: 23.1.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 4 days, 1 hour, 9 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 165 (brew)
XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: bash 3.2.57
;MMMMMMMMMMMMMMMMMMMMMMMM: Resolution: 1470x956
:MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Quartz Compositor
kMMMMMMMMMMMMMMMMMMMMMMMMWd. WM Theme: Blue (Dark)
.XMMMMMMMMMMMMMMMMMMMMMMMMMMk Terminal: tmux
.XMMMMMMMMMMMMMMMMMMMMMMMMK. CPU: Apple M2
kMMMMMMMMMMMMMMMMMMMMMMd GPU: Apple M2
;KMMMMMMMWXXWMMMMMMMk. Memory: 1294MiB / 8192MiB
.cooc,. .,coo:.