summaryrefslogtreecommitdiff
path: root/2019/5.hs
diff options
context:
space:
mode:
Diffstat (limited to '2019/5.hs')
-rw-r--r--2019/5.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/2019/5.hs b/2019/5.hs
new file mode 100644
index 0000000..25137d8
--- /dev/null
+++ b/2019/5.hs
@@ -0,0 +1,11 @@
+module Main where
+
+import Input
+import IntCode
+
+
+main :: IO ()
+main = do
+ initMem <- parse . head <$> getInput 5
+ print (snd (run initMem [1]))
+ print (snd (run initMem [5]))