Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 19, 2023
1 parent 066482b commit dffbde6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions solutions/src/2023/19.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ main =
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])
let full = 1 :> 4001
print (acceptedCount workflows (Part full full full full))
Expand Down

0 comments on commit dffbde6

Please sign in to comment.