From 5f5728a6a50ab2a6bb178a36c3e73a749c540b87 Mon Sep 17 00:00:00 2001 From: Stedd Date: Mon, 2 Dec 2024 19:37:22 +0100 Subject: [PATCH] changed to the task test set --- days/day02.cpp | 4 ++-- input/day02short.txt | 19 +++++-------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/days/day02.cpp b/days/day02.cpp index 129a28d..db074b3 100644 --- a/days/day02.cpp +++ b/days/day02.cpp @@ -60,8 +60,8 @@ Analyze the unusual data from the engineers. How many reports are safe? void day02::Calculate() { - //std::ifstream input("input/day02short.txt"); - std::ifstream input("input/day02.txt"); + std::ifstream input("input/day02short.txt"); + //std::ifstream input("input/day02.txt"); if (!input) { diff --git a/input/day02short.txt b/input/day02short.txt index 5a89d0c..82cd679 100644 --- a/input/day02short.txt +++ b/input/day02short.txt @@ -1,15 +1,6 @@ -22 25 27 28 30 31 32 29 -72 74 75 77 80 81 81 -52 53 55 58 59 63 -14 17 19 22 27 -65 68 67 68 71 73 76 77 -53 56 53 55 54 -60 62 59 62 62 -27 30 28 31 32 35 39 -64 67 68 71 74 71 74 81 -29 32 32 33 36 39 40 -72 74 74 75 74 -11 14 14 17 17 7 6 4 2 1 -1 3 6 7 9 -8 6 4 4 1 \ No newline at end of file +1 2 7 8 9 +9 7 6 2 1 +1 3 2 4 5 +8 6 4 4 1 +1 3 6 7 9 \ No newline at end of file