Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 14, 2024
1 parent 75c015b commit 34017bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/src/2024/13.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ main =

cost :: Integer -> (Integer, Integer, Integer, Integer, Integer, Integer) -> Integer
cost extra (ax, ay, bx, by, x, y)
| det == 0 = colinear ax ay bx by x y
| det == 0 = colinear ax ay bx by x' y'
| (a, 0) <- (by * x' - bx * y') `quotRem` det, a >= 0
, (b, 0) <- (ax * y' - ay * x') `quotRem` det, b >= 0
= 3 * a + b
Expand Down

0 comments on commit 34017bd

Please sign in to comment.