diff options
author | tomsmeding <tom.smeding@gmail.com> | 2019-12-05 12:20:10 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2019-12-05 12:20:10 +0100 |
commit | 8db33e442ed88d1dad597123bcb156dc9280151c (patch) | |
tree | 0f0a08e7828461a683015549e87ecce444874264 /2019/5.hs | |
parent | 2635d4b3f0db38e5399b0945f114c4775ea413fd (diff) |
Day 5
Diffstat (limited to '2019/5.hs')
-rw-r--r-- | 2019/5.hs | 11 |
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])) |