From 757b98fb30e75d7698a0986184d0303224db156c Mon Sep 17 00:00:00 2001 From: Prefetch Date: Tue, 26 Mar 2024 21:41:32 +0100 Subject: Publish days 6-10 --- 06/main.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 06/main.scm (limited to '06/main.scm') diff --git a/06/main.scm b/06/main.scm new file mode 100644 index 0000000..4e58151 --- /dev/null +++ b/06/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 6681 for me +(printf "Part 1 solution: ~a\n" (solve-part1 input)) + +; Part 2 gives 2392 for me +(printf "Part 2 solution: ~a\n" (solve-part2 input)) -- cgit v1.2.3