Day8
This commit is contained in:
parent
b359a6dd54
commit
cf51ce2dd1
1 changed files with 5 additions and 3 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue