final day 1

This commit is contained in:
KoenDR06 2025-12-01 15:13:12 +01:00
parent b3565d5596
commit 4512b18543

View file

@ -21,7 +21,7 @@ part2 = go 50 . convertToInts . lines
edgeCase = if x < 0 && p' `mod` 100 == 0 then 1 else 0 edgeCase = if x < 0 && p' `mod` 100 == 0 then 1 else 0
+ if x < 0 && p `mod` 100 == 0 then -1 else 0 + if x < 0 && p `mod` 100 == 0 then -1 else 0
p' = (p + x) p' = p + x
main :: IO () main :: IO ()
main = do main = do