summaryrefslogtreecommitdiff
path: root/10/main.scm
diff options
context:
space:
mode:
authorPrefetch2024-03-26 21:41:32 +0100
committerPrefetch2024-03-26 21:41:32 +0100
commit757b98fb30e75d7698a0986184d0303224db156c (patch)
treeb0f01bf59bb6fc7d26b55f6edd611393f8f8bf62 /10/main.scm
parent1fbb07c54523c7a576bfff1cb689e155dd55f15a (diff)
Publish days 6-10
Diffstat (limited to '10/main.scm')
-rw-r--r--10/main.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/10/main.scm b/10/main.scm
new file mode 100644
index 0000000..554b259
--- /dev/null
+++ b/10/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 6952 for me
+(printf "Part 1 solution: ~a\n" (solve-part1 input))
+
+; Part 2 gives "28e7c4360520718a5dc811d3942cf1fd" for me
+(printf "Part 2 solution: ~a\n" (solve-part2 input))