Skip to content

Commit

Permalink
parens
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 19, 2023
1 parent c7ddfb3 commit 56c2640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/src/2023/19.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ stageTH
-- 127517902575337
main :: IO ()
main =
do (workflows_, parts_) <- [format|2023 19 (%a+{((@V@O%d:%a+),)*%a+}%n)*%n({x=%d,m=%d,a=%d,s=%d}%n)*|]
do (workflows_, parts_) <- [format|2023 19 (%a+{(@V@O%u:%a+,)*%a+}%n)*%n({x=%u,m=%u,a=%u,s=%u}%n)*|]
let workflows = Map.fromList [(k, (rs, e)) | (k, rs, e) <- workflows_]
parts = [Part x m a s | (x, m, a, s) <- parts_]
print (sum [sum p | p <- parts, accepted workflows p])
Expand Down

0 comments on commit 56c2640

Please sign in to comment.