diff options
author | tomsmeding <tom.smeding@gmail.com> | 2019-12-07 10:50:01 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2019-12-07 10:50:01 +0100 |
commit | 846fdc733023dfad5399e1017d1e2b369806b788 (patch) | |
tree | 2414652e3e5016b316ede144f9369443288b5dd0 /2019 | |
parent | f51f3273e63a38eed73ffb53cd5a021a4472a886 (diff) |
Correct output format of 5
Diffstat (limited to '2019')
-rw-r--r-- | 2019/5.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]))) |