summaryrefslogtreecommitdiff
path: root/2019
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-12-07 10:50:01 +0100
committertomsmeding <tom.smeding@gmail.com>2019-12-07 10:50:01 +0100
commit846fdc733023dfad5399e1017d1e2b369806b788 (patch)
tree2414652e3e5016b316ede144f9369443288b5dd0 /2019
parentf51f3273e63a38eed73ffb53cd5a021a4472a886 (diff)
Correct output format of 5
Diffstat (limited to '2019')
-rw-r--r--2019/5.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/2019/5.hs b/2019/5.hs
index 25137d8..1f05561 100644
--- a/2019/5.hs
+++ b/2019/5.hs
@@ -7,5 +7,5 @@ import IntCode
main :: IO ()
main = do
initMem <- parse . head <$> getInput 5
- print (snd (run initMem [1]))
- print (snd (run initMem [5]))
+ print (last (snd (run initMem [1])))
+ print (last (snd (run initMem [5])))