aboutsummaryrefslogtreecommitdiff
path: root/2019/05
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-12-16 03:57:38 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-12-16 03:57:38 +0100
commitf8697a854edd878d8787cc450a2c4d98c8d1b755 (patch)
tree9ad8564f84943fac313569a43cab292dc44c5dc4 /2019/05
parent9dc89ec016a18d006f1524164737be2a7ff96ac0 (diff)
Add 2019 day 5 solutions
Diffstat (limited to '2019/05')
-rw-r--r--2019/05/.gitignore1
-rw-r--r--2019/05/Makefile1
-rw-r--r--2019/05/puzzles.lisp11
3 files changed, 13 insertions, 0 deletions
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