From f8697a854edd878d8787cc450a2c4d98c8d1b755 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 16 Dec 2024 03:57:38 +0100 Subject: Add 2019 day 5 solutions --- 2019/05/.gitignore | 1 + 2019/05/Makefile | 1 + 2019/05/puzzles.lisp | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 2019/05/.gitignore create mode 100644 2019/05/Makefile create mode 100644 2019/05/puzzles.lisp (limited to '2019/05') diff --git a/2019/05/.gitignore b/2019/05/.gitignore new file mode 100644 index 0000000..5fcaefb --- /dev/null +++ b/2019/05/.gitignore @@ -0,0 +1 @@ +puzzle-[12].lisp \ No newline at end of file diff --git a/2019/05/Makefile b/2019/05/Makefile new file mode 100644 index 0000000..5a21270 --- /dev/null +++ b/2019/05/Makefile @@ -0,0 +1 @@ +include ../../Makefiles/lisp.mk \ No newline at end of file diff --git a/2019/05/puzzles.lisp b/2019/05/puzzles.lisp new file mode 100644 index 0000000..e81b352 --- /dev/null +++ b/2019/05/puzzles.lisp @@ -0,0 +1,11 @@ +#!/usr/bin/sbcl --script + +(load "../interpreter.lisp") + +(format t "~a~%" (car (last (intcode:run (intcode:parse "input") + ;; START PART 1 + '(1) + ;; END PART 1 START PART 2 + '(5) + ;; END PART 2 + )))) \ No newline at end of file -- cgit v1.2.3