aboutsummaryrefslogtreecommitdiffstats
path: root/src/04/part2
blob: 65b817630744771cb43868d33ee1d2a36cda924c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- Part Two ---

On the other hand, it might be wise to try a different strategy: let the giant squid win.

You aren't sure how many bingo boards a giant squid could play at once, so rather than waste time
counting its arms, the safe thing to do is to figure out which board will win last and
choose that one. That way, no matter which boards it picks, it will win for sure.

In the above example, the second board is the last to win, which happens after 13 is eventually
called and its middle column is completely marked. If you were to keep playing until this point, the
second board would have a sum of unmarked numbers equal to 148 for a final score of 148 * 13 =
1924.

Figure out which board will win last. Once it wins, what would its final score be?