From 846fdc733023dfad5399e1017d1e2b369806b788 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 7 Dec 2019 10:50:01 +0100 Subject: Correct output format of 5 --- 2019/5.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2019') 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]))) -- cgit v1.2.3-70-g09d2