We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 007903b commit 6c40530Copy full SHA for 6c40530
day22/experiments/day22.cpp
@@ -63,6 +63,7 @@ int64_t findBestScore(std::vector<int64_t> input) {
63
for (int64_t x4 = -bound; x4 <= bound; x4++) {
64
int64_t n = score(input, x1, x2, x3, x4);
65
if (n > bestScore) {
66
+ std::cout << "New best: (" << x1 << ", " << x2 << ", " << x3 << ", " << x4 << ") -> " << n << std::endl;
67
bestScore = n;
68
}
69
0 commit comments