summaryrefslogtreecommitdiff
path: root/09/main.scm
diff options
context:
space:
mode:
Diffstat (limited to '09/main.scm')
-rw-r--r--09/main.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/09/main.scm b/09/main.scm
new file mode 100644
index 0000000..b4b540a
--- /dev/null
+++ b/09/main.scm
@@ -0,0 +1,14 @@
+(import (chezscheme))
+
+; Where the magic happens
+(import (lib))
+
+; Read my personal puzzle input
+(define input
+ (call-with-input-file "input.txt" get-line))
+
+; Part 1 gives 21037 for me
+(printf "Part 1 solution: ~a\n" (solve-part1 input))
+
+; Part 2 gives 9495 for me
+(printf "Part 2 solution: ~a\n" (solve-part2 input))