From 80eacc6ed29065eb598e58ee363b726716dfabe7 Mon Sep 17 00:00:00 2001 From: Thraix Date: Thu, 6 Aug 2026 21:33:10 +0200 Subject: [PATCH] Add 2016 templates --- res/2016/day01/test_input.txt | 1 + res/2016/day02/test_input.txt | 0 res/2016/day03/test_input.txt | 0 res/2016/day04/test_input.txt | 0 res/2016/day05/test_input.txt | 0 res/2016/day06/test_input.txt | 0 res/2016/day07/test_input.txt | 0 res/2016/day08/test_input.txt | 0 res/2016/day09/test_input.txt | 0 res/2016/day10/test_input.txt | 0 res/2016/day11/test_input.txt | 0 res/2016/day12/test_input.txt | 0 res/2016/day13/test_input.txt | 0 res/2016/day14/test_input.txt | 0 res/2016/day15/test_input.txt | 0 res/2016/day16/test_input.txt | 0 res/2016/day17/test_input.txt | 0 res/2016/day18/test_input.txt | 0 res/2016/day19/test_input.txt | 0 res/2016/day20/test_input.txt | 0 res/2016/day21/test_input.txt | 0 res/2016/day22/test_input.txt | 0 res/2016/day23/test_input.txt | 0 res/2016/day24/test_input.txt | 0 res/2016/day25/test_input.txt | 0 src/2016/Day01.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day02.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day03.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day04.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day05.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day06.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day07.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day08.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day09.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day10.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day11.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day12.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day13.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day14.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day15.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day16.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day17.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day18.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day19.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day20.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day21.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day22.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day23.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day24.cpp | 31 +++++++++++++++++++++++++++++++ src/2016/Day25.cpp | 31 +++++++++++++++++++++++++++++++ 50 files changed, 776 insertions(+) create mode 100644 res/2016/day01/test_input.txt create mode 100644 res/2016/day02/test_input.txt create mode 100644 res/2016/day03/test_input.txt create mode 100644 res/2016/day04/test_input.txt create mode 100644 res/2016/day05/test_input.txt create mode 100644 res/2016/day06/test_input.txt create mode 100644 res/2016/day07/test_input.txt create mode 100644 res/2016/day08/test_input.txt create mode 100644 res/2016/day09/test_input.txt create mode 100644 res/2016/day10/test_input.txt create mode 100644 res/2016/day11/test_input.txt create mode 100644 res/2016/day12/test_input.txt create mode 100644 res/2016/day13/test_input.txt create mode 100644 res/2016/day14/test_input.txt create mode 100644 res/2016/day15/test_input.txt create mode 100644 res/2016/day16/test_input.txt create mode 100644 res/2016/day17/test_input.txt create mode 100644 res/2016/day18/test_input.txt create mode 100644 res/2016/day19/test_input.txt create mode 100644 res/2016/day20/test_input.txt create mode 100644 res/2016/day21/test_input.txt create mode 100644 res/2016/day22/test_input.txt create mode 100644 res/2016/day23/test_input.txt create mode 100644 res/2016/day24/test_input.txt create mode 100644 res/2016/day25/test_input.txt create mode 100644 src/2016/Day01.cpp create mode 100644 src/2016/Day02.cpp create mode 100644 src/2016/Day03.cpp create mode 100644 src/2016/Day04.cpp create mode 100644 src/2016/Day05.cpp create mode 100644 src/2016/Day06.cpp create mode 100644 src/2016/Day07.cpp create mode 100644 src/2016/Day08.cpp create mode 100644 src/2016/Day09.cpp create mode 100644 src/2016/Day10.cpp create mode 100644 src/2016/Day11.cpp create mode 100644 src/2016/Day12.cpp create mode 100644 src/2016/Day13.cpp create mode 100644 src/2016/Day14.cpp create mode 100644 src/2016/Day15.cpp create mode 100644 src/2016/Day16.cpp create mode 100644 src/2016/Day17.cpp create mode 100644 src/2016/Day18.cpp create mode 100644 src/2016/Day19.cpp create mode 100644 src/2016/Day20.cpp create mode 100644 src/2016/Day21.cpp create mode 100644 src/2016/Day22.cpp create mode 100644 src/2016/Day23.cpp create mode 100644 src/2016/Day24.cpp create mode 100644 src/2016/Day25.cpp diff --git a/res/2016/day01/test_input.txt b/res/2016/day01/test_input.txt new file mode 100644 index 0000000..00c8c89 --- /dev/null +++ b/res/2016/day01/test_input.txt @@ -0,0 +1 @@ +R5, L5, R5, R3 diff --git a/res/2016/day02/test_input.txt b/res/2016/day02/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day03/test_input.txt b/res/2016/day03/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day04/test_input.txt b/res/2016/day04/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day05/test_input.txt b/res/2016/day05/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day06/test_input.txt b/res/2016/day06/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day07/test_input.txt b/res/2016/day07/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day08/test_input.txt b/res/2016/day08/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day09/test_input.txt b/res/2016/day09/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day10/test_input.txt b/res/2016/day10/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day11/test_input.txt b/res/2016/day11/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day12/test_input.txt b/res/2016/day12/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day13/test_input.txt b/res/2016/day13/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day14/test_input.txt b/res/2016/day14/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day15/test_input.txt b/res/2016/day15/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day16/test_input.txt b/res/2016/day16/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day17/test_input.txt b/res/2016/day17/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day18/test_input.txt b/res/2016/day18/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day19/test_input.txt b/res/2016/day19/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day20/test_input.txt b/res/2016/day20/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day21/test_input.txt b/res/2016/day21/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day22/test_input.txt b/res/2016/day22/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day23/test_input.txt b/res/2016/day23/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day24/test_input.txt b/res/2016/day24/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/res/2016/day25/test_input.txt b/res/2016/day25/test_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/2016/Day01.cpp b/src/2016/Day01.cpp new file mode 100644 index 0000000..0189836 --- /dev/null +++ b/src/2016/Day01.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day01 +{ + REGISTER_DAY(2016, Day01, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day01, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day01, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day01, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day01, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day02.cpp b/src/2016/Day02.cpp new file mode 100644 index 0000000..f6b75e1 --- /dev/null +++ b/src/2016/Day02.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day02 +{ + REGISTER_DAY(2016, Day02, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day02, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day02, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day02, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day02, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day03.cpp b/src/2016/Day03.cpp new file mode 100644 index 0000000..df67cd4 --- /dev/null +++ b/src/2016/Day03.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day03 +{ + REGISTER_DAY(2016, Day03, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day03, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day03, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day03, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day03, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day04.cpp b/src/2016/Day04.cpp new file mode 100644 index 0000000..d7a4de3 --- /dev/null +++ b/src/2016/Day04.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day04 +{ + REGISTER_DAY(2016, Day04, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day04, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day04, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day04, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day04, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day05.cpp b/src/2016/Day05.cpp new file mode 100644 index 0000000..3c6ef48 --- /dev/null +++ b/src/2016/Day05.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day05 +{ + REGISTER_DAY(2016, Day05, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day05, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day05, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day05, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day05, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day06.cpp b/src/2016/Day06.cpp new file mode 100644 index 0000000..531e1d3 --- /dev/null +++ b/src/2016/Day06.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day06 +{ + REGISTER_DAY(2016, Day06, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day06, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day06, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day06, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day06, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day07.cpp b/src/2016/Day07.cpp new file mode 100644 index 0000000..5ae30a0 --- /dev/null +++ b/src/2016/Day07.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day07 +{ + REGISTER_DAY(2016, Day07, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day07, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day07, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day07, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day07, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day08.cpp b/src/2016/Day08.cpp new file mode 100644 index 0000000..b224def --- /dev/null +++ b/src/2016/Day08.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day08 +{ + REGISTER_DAY(2016, Day08, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day08, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day08, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day08, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day08, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day09.cpp b/src/2016/Day09.cpp new file mode 100644 index 0000000..87f4912 --- /dev/null +++ b/src/2016/Day09.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day09 +{ + REGISTER_DAY(2016, Day09, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day09, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day09, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day09, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day09, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day10.cpp b/src/2016/Day10.cpp new file mode 100644 index 0000000..c58da66 --- /dev/null +++ b/src/2016/Day10.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day10 +{ + REGISTER_DAY(2016, Day10, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day10, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day10, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day10, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day10, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day11.cpp b/src/2016/Day11.cpp new file mode 100644 index 0000000..4fc904a --- /dev/null +++ b/src/2016/Day11.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day11 +{ + REGISTER_DAY(2016, Day11, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day11, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day11, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day11, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day11, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day12.cpp b/src/2016/Day12.cpp new file mode 100644 index 0000000..6efed7b --- /dev/null +++ b/src/2016/Day12.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day12 +{ + REGISTER_DAY(2016, Day12, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day12, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day12, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day12, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day12, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day13.cpp b/src/2016/Day13.cpp new file mode 100644 index 0000000..6f0e596 --- /dev/null +++ b/src/2016/Day13.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day13 +{ + REGISTER_DAY(2016, Day13, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day13, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day13, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day13, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day13, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day14.cpp b/src/2016/Day14.cpp new file mode 100644 index 0000000..448e544 --- /dev/null +++ b/src/2016/Day14.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day14 +{ + REGISTER_DAY(2016, Day14, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day14, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day14, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day14, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day14, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day15.cpp b/src/2016/Day15.cpp new file mode 100644 index 0000000..f9c2032 --- /dev/null +++ b/src/2016/Day15.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day15 +{ + REGISTER_DAY(2016, Day15, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day15, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day15, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day15, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day15, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day16.cpp b/src/2016/Day16.cpp new file mode 100644 index 0000000..d957b41 --- /dev/null +++ b/src/2016/Day16.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day16 +{ + REGISTER_DAY(2016, Day16, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day16, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day16, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day16, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day16, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day17.cpp b/src/2016/Day17.cpp new file mode 100644 index 0000000..ed2fa22 --- /dev/null +++ b/src/2016/Day17.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day17 +{ + REGISTER_DAY(2016, Day17, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day17, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day17, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day17, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day17, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day18.cpp b/src/2016/Day18.cpp new file mode 100644 index 0000000..802a0ef --- /dev/null +++ b/src/2016/Day18.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day18 +{ + REGISTER_DAY(2016, Day18, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day18, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day18, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day18, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day18, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day19.cpp b/src/2016/Day19.cpp new file mode 100644 index 0000000..6cd7d68 --- /dev/null +++ b/src/2016/Day19.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day19 +{ + REGISTER_DAY(2016, Day19, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day19, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day19, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day19, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day19, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day20.cpp b/src/2016/Day20.cpp new file mode 100644 index 0000000..e6b4daa --- /dev/null +++ b/src/2016/Day20.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day20 +{ + REGISTER_DAY(2016, Day20, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day20, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day20, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day20, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day20, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day21.cpp b/src/2016/Day21.cpp new file mode 100644 index 0000000..272d0c8 --- /dev/null +++ b/src/2016/Day21.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day21 +{ + REGISTER_DAY(2016, Day21, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day21, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day21, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day21, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day21, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day22.cpp b/src/2016/Day22.cpp new file mode 100644 index 0000000..472b6b4 --- /dev/null +++ b/src/2016/Day22.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day22 +{ + REGISTER_DAY(2016, Day22, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day22, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day22, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day22, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day22, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day23.cpp b/src/2016/Day23.cpp new file mode 100644 index 0000000..805c373 --- /dev/null +++ b/src/2016/Day23.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day23 +{ + REGISTER_DAY(2016, Day23, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day23, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day23, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day23, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day23, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day24.cpp b/src/2016/Day24.cpp new file mode 100644 index 0000000..1b4fbfb --- /dev/null +++ b/src/2016/Day24.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day24 +{ + REGISTER_DAY(2016, Day24, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day24, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day24, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day24, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day24, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +} diff --git a/src/2016/Day25.cpp b/src/2016/Day25.cpp new file mode 100644 index 0000000..dc4a26b --- /dev/null +++ b/src/2016/Day25.cpp @@ -0,0 +1,31 @@ +#include "common/aoc.h" + +namespace y2016::day25 +{ + REGISTER_DAY(2016, Day25, std::vector, int); + + REGISTER_TEST_EXAMPLE(2016, Day25, ExampleInput, 1, 0); + REGISTER_TEST(2016, Day25, Input, 1, 0); + REGISTER_TEST_EXAMPLE(2016, Day25, ExampleInput, 2, 0); + REGISTER_TEST(2016, Day25, Input, 2, 0); + + READ_INPUT(input) + { + std::vector vec; + std::string str; + while (getline(input, str)) + { + } + return vec; + } + + OUTPUT1(input) + { + return 0; + } + + OUTPUT2(input) + { + return 0; + } +}