We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e63275d commit a991806Copy full SHA for a991806
2022/Day19/Solution.cs
@@ -96,7 +96,8 @@ state with {
96
// a new geode robot...
97
int potentialGeodeCount(State state) {
98
// sum of [state.producing.geode .. state.producing.geode + state.remainingTime - 1]
99
- var future = (2 * state.producing.geode + state.remainingTime - 1) * state.remainingTime / 2;
+ var future =
100
+ (2 * state.producing.geode + state.remainingTime - 1) * state.remainingTime / 2;
101
return state.available.geode + future;
102
}
103
0 commit comments