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