Solutions written in Scheme
Requires a Scheme (R6RS) implementation, such as Chez.
Requires a C99-compliant compiler. Solutions can be built with the provided Makefile.
Problem inputs are read from STDIN:
# Scheme solutions for day n
chezscheme --script n.ss < input.txt
# C solutions for day n
make day_n
./day_n < input.txt
The solutions to both parts of the problem are then printed:
... solution here ...
... solution here ...