This commit is contained in:
Feiko Wielsma 2025-12-13 12:35:10 +00:00
parent b359a6dd54
commit cf51ce2dd1

View file

@ -149,8 +149,9 @@ static auto doTheThing(const std::vector<Point> &pointVec, int numberToTake) ->
auto main() -> int {
auto testCase = parseInput("test_input");
if (testCase) {
constexpr int TEST_PUZZLE_TAKE = 10;
auto testResult = doTheThing(*testCase, 10);
auto testResult = doTheThing(*testCase, TEST_PUZZLE_TAKE);
std::println("P1 Testcase result: {}", testResult);
// auto testResultP2 = treePartTwo(*testCase);
@ -161,10 +162,11 @@ auto main() -> int {
auto realPuzzle = parseInput("puzzle_input");
if (realPuzzle) {
// auto realResult = doTheThing(*realPuzzle, 1000);
constexpr int REAL_PUZZLE_TAKE = 1000;
// auto realResult = doTheThing(*realPuzzle, REAL_PUZZLE_TAKE);
// std::println("P1 Real result: {}", realResult);
auto realResultP2 = doTheThing(*realPuzzle, 1000);
auto realResultP2 = doTheThing(*realPuzzle, REAL_PUZZLE_TAKE);
std::println("P2 Real result: {}", realResultP2);
} else {
std::print("{}\n", realPuzzle.error());