aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-03-19 22:36:52 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-03-19 22:36:52 +0800
commit751d4d443ced037df6ae6debcc43008c205205bd (patch)
tree0203019c9e1c08f3f08e99b6481b8252e688f5f9
parentc71f5fb192461ddfb5c80b01302847966cad59d6 (diff)
downloadadvent-of-code-751d4d443ced037df6ae6debcc43008c205205bd.tar.gz
advent-of-code-751d4d443ced037df6ae6debcc43008c205205bd.zip
day 13 only needs one combo
-rw-r--r--src/2015/day13/aoc.h1
-rw-r--r--test/test_2015.cpp3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/2015/day13/aoc.h b/src/2015/day13/aoc.h
index 8cb22f7..99956b2 100644
--- a/src/2015/day13/aoc.h
+++ b/src/2015/day13/aoc.h
@@ -78,6 +78,7 @@ struct party {
arrange_t arrangement = new std::vector<guest*>;
std::set<guest*> gs;
arrange(g, gs, arrangement, combos);
+ break;
}
int hmax = INT32_MIN;
diff --git a/test/test_2015.cpp b/test/test_2015.cpp
index 3dc0e8e..3389882 100644
--- a/test/test_2015.cpp
+++ b/test/test_2015.cpp
@@ -153,10 +153,7 @@ TEST_CASE("Knights of the Dinner Table", "[day13]") {
REQUIRE(-638 == p1.first);
REQUIRE(709 == p1.second);
- /*
auto p2 = aoc2015::day13(lv, "Wukai");
REQUIRE(-679 == p2.first);
REQUIRE(668 == p2.second);
- */
-
}