Skip to content

Commit 6c40530

Browse files
committed
Output the best sequences
1 parent 007903b commit 6c40530

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

day22/experiments/day22.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ int64_t findBestScore(std::vector<int64_t> input) {
6363
for (int64_t x4 = -bound; x4 <= bound; x4++) {
6464
int64_t n = score(input, x1, x2, x3, x4);
6565
if (n > bestScore) {
66+
std::cout << "New best: (" << x1 << ", " << x2 << ", " << x3 << ", " << x4 << ") -> " << n << std::endl;
6667
bestScore = n;
6768
}
6869
}

0 commit comments

Comments
 (0)