summaryrefslogtreecommitdiff
path: root/2019/9.hs
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-12-09 19:56:26 +0100
committerTom Smeding <tom.smeding@gmail.com>2019-12-09 19:56:26 +0100
commit4a456c4e939942b81d2c4dd7744a1df0bdd85464 (patch)
tree3400f1832889439e61cd2d378dc09a99880953e8 /2019/9.hs
parent7b70f24bf54ec9ef1754695ad278730c59f8d4e9 (diff)
Day 9
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])))