final day 1
This commit is contained in:
parent
b3565d5596
commit
4512b18543
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue