Skip to content

Commit a991806

Browse files
committed
2022/19
1 parent e63275d commit a991806

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

2022/Day19/Solution.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ state with {
9696
// a new geode robot...
9797
int potentialGeodeCount(State state) {
9898
// sum of [state.producing.geode .. state.producing.geode + state.remainingTime - 1]
99-
var future = (2 * state.producing.geode + state.remainingTime - 1) * state.remainingTime / 2;
99+
var future =
100+
(2 * state.producing.geode + state.remainingTime - 1) * state.remainingTime / 2;
100101
return state.available.geode + future;
101102
}
102103

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy