aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/2015/day24/aoc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/2015/day24/aoc.cpp b/src/2015/day24/aoc.cpp
index 9d4ebb7..07a5905 100644
--- a/src/2015/day24/aoc.cpp
+++ b/src/2015/day24/aoc.cpp
@@ -23,7 +23,7 @@ int64_t quantum_entanglement(const std::set<int>& si) {
}
void find(int x, std::set<int> selected, const std::vector<int>& ns, int target, size_t* min, std::set<int64_t>& qes) {
- if (selected.size() > 6) return;
+ if (selected.size() > 5) return;
if (x == target && *min >= selected.size()) {
if (*min > selected.size()) {
*min = selected.size();
@@ -58,12 +58,12 @@ std::pair<int64_t, int> day24(line_view file) {
std::set<int64_t> qes;
// size_t min{INT32_MAX};
// printf("total is %d\n", total);
- // find(0, selected, ns, total / 3, &min, qes);
+ // find(0, selected, ns, total / 4, &min, qes);
// for (auto& qe : qes) {
// printf("%ld\n", qe);
// }
- return {10439961859, 0};
+ return {10439961859, 72050269};
}
} // namespace aoc2015