From ee55c807ef7be233a649910000ef8285383a8650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Mon, 4 Dec 2023 19:32:41 +0100 Subject: [PATCH] Prepare 2023 days. --- 2023/day10.py | 13 +++++++++++++ 2023/day11.py | 13 +++++++++++++ 2023/day12.py | 13 +++++++++++++ 2023/day13.py | 13 +++++++++++++ 2023/day14.py | 13 +++++++++++++ 2023/day15.py | 13 +++++++++++++ 2023/day16.py | 13 +++++++++++++ 2023/day17.py | 13 +++++++++++++ 2023/day18.py | 13 +++++++++++++ 2023/day19.py | 13 +++++++++++++ 2023/day20.py | 13 +++++++++++++ 2023/day21.py | 13 +++++++++++++ 2023/day22.py | 13 +++++++++++++ 2023/day23.py | 13 +++++++++++++ 2023/day24.py | 13 +++++++++++++ 2023/day25.py | 13 +++++++++++++ 2023/day5.py | 13 +++++++++++++ 2023/day6.py | 13 +++++++++++++ 2023/day7.py | 13 +++++++++++++ 2023/day8.py | 13 +++++++++++++ 2023/day9.py | 13 +++++++++++++ 2023/inputs/day10.txt | 0 2023/inputs/day11.txt | 0 2023/inputs/day12.txt | 0 2023/inputs/day13.txt | 0 2023/inputs/day14.txt | 0 2023/inputs/day15.txt | 0 2023/inputs/day16.txt | 0 2023/inputs/day17.txt | 0 2023/inputs/day18.txt | 0 2023/inputs/day19.txt | 0 2023/inputs/day20.txt | 0 2023/inputs/day21.txt | 0 2023/inputs/day22.txt | 0 2023/inputs/day23.txt | 0 2023/inputs/day24.txt | 0 2023/inputs/day25.txt | 0 2023/inputs/day6.txt | 0 2023/inputs/day7.txt | 0 2023/inputs/day8.txt | 0 2023/inputs/day9.txt | 0 2023/tests/day10.txt | 0 2023/tests/day11.txt | 0 2023/tests/day12.txt | 0 2023/tests/day13.txt | 0 2023/tests/day14.txt | 0 2023/tests/day15.txt | 0 2023/tests/day16.txt | 0 2023/tests/day17.txt | 0 2023/tests/day18.txt | 0 2023/tests/day19.txt | 0 2023/tests/day20.txt | 0 2023/tests/day21.txt | 0 2023/tests/day22.txt | 0 2023/tests/day23.txt | 0 2023/tests/day24.txt | 0 2023/tests/day25.txt | 0 2023/tests/day6.txt | 0 2023/tests/day7.txt | 0 2023/tests/day8.txt | 0 2023/tests/day9.txt | 0 61 files changed, 273 insertions(+) create mode 100644 2023/day10.py create mode 100644 2023/day11.py create mode 100644 2023/day12.py create mode 100644 2023/day13.py create mode 100644 2023/day14.py create mode 100644 2023/day15.py create mode 100644 2023/day16.py create mode 100644 2023/day17.py create mode 100644 2023/day18.py create mode 100644 2023/day19.py create mode 100644 2023/day20.py create mode 100644 2023/day21.py create mode 100644 2023/day22.py create mode 100644 2023/day23.py create mode 100644 2023/day24.py create mode 100644 2023/day25.py create mode 100644 2023/day5.py create mode 100644 2023/day6.py create mode 100644 2023/day7.py create mode 100644 2023/day8.py create mode 100644 2023/day9.py create mode 100644 2023/inputs/day10.txt create mode 100644 2023/inputs/day11.txt create mode 100644 2023/inputs/day12.txt create mode 100644 2023/inputs/day13.txt create mode 100644 2023/inputs/day14.txt create mode 100644 2023/inputs/day15.txt create mode 100644 2023/inputs/day16.txt create mode 100644 2023/inputs/day17.txt create mode 100644 2023/inputs/day18.txt create mode 100644 2023/inputs/day19.txt create mode 100644 2023/inputs/day20.txt create mode 100644 2023/inputs/day21.txt create mode 100644 2023/inputs/day22.txt create mode 100644 2023/inputs/day23.txt create mode 100644 2023/inputs/day24.txt create mode 100644 2023/inputs/day25.txt create mode 100644 2023/inputs/day6.txt create mode 100644 2023/inputs/day7.txt create mode 100644 2023/inputs/day8.txt create mode 100644 2023/inputs/day9.txt create mode 100644 2023/tests/day10.txt create mode 100644 2023/tests/day11.txt create mode 100644 2023/tests/day12.txt create mode 100644 2023/tests/day13.txt create mode 100644 2023/tests/day14.txt create mode 100644 2023/tests/day15.txt create mode 100644 2023/tests/day16.txt create mode 100644 2023/tests/day17.txt create mode 100644 2023/tests/day18.txt create mode 100644 2023/tests/day19.txt create mode 100644 2023/tests/day20.txt create mode 100644 2023/tests/day21.txt create mode 100644 2023/tests/day22.txt create mode 100644 2023/tests/day23.txt create mode 100644 2023/tests/day24.txt create mode 100644 2023/tests/day25.txt create mode 100644 2023/tests/day6.txt create mode 100644 2023/tests/day7.txt create mode 100644 2023/tests/day8.txt create mode 100644 2023/tests/day9.txt diff --git a/2023/day10.py b/2023/day10.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day10.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day11.py b/2023/day11.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day11.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day12.py b/2023/day12.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day12.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day13.py b/2023/day13.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day13.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day14.py b/2023/day14.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day14.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day15.py b/2023/day15.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day15.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day16.py b/2023/day16.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day16.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day17.py b/2023/day17.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day17.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day18.py b/2023/day18.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day18.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day19.py b/2023/day19.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day19.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day20.py b/2023/day20.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day20.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day21.py b/2023/day21.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day21.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day22.py b/2023/day22.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day22.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day23.py b/2023/day23.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day23.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day24.py b/2023/day24.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day24.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day25.py b/2023/day25.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day25.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day5.py b/2023/day5.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day5.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day6.py b/2023/day6.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day6.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day7.py b/2023/day7.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day7.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day8.py b/2023/day8.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day8.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/day9.py b/2023/day9.py new file mode 100644 index 0000000..992bf35 --- /dev/null +++ b/2023/day9.py @@ -0,0 +1,13 @@ +import sys +from collections import defaultdict +from dataclasses import dataclass + +lines = sys.stdin.read().splitlines() + +# part 1 +answer_1 = ... +print(f"answer 1 is {answer_1}") + +# part 2 +answer_2 = ... +print(f"answer 2 is {answer_2}") diff --git a/2023/inputs/day10.txt b/2023/inputs/day10.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day11.txt b/2023/inputs/day11.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day12.txt b/2023/inputs/day12.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day13.txt b/2023/inputs/day13.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day14.txt b/2023/inputs/day14.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day15.txt b/2023/inputs/day15.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day16.txt b/2023/inputs/day16.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day17.txt b/2023/inputs/day17.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day18.txt b/2023/inputs/day18.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day19.txt b/2023/inputs/day19.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day20.txt b/2023/inputs/day20.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day21.txt b/2023/inputs/day21.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day22.txt b/2023/inputs/day22.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day23.txt b/2023/inputs/day23.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day24.txt b/2023/inputs/day24.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day25.txt b/2023/inputs/day25.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day6.txt b/2023/inputs/day6.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day7.txt b/2023/inputs/day7.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day8.txt b/2023/inputs/day8.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/inputs/day9.txt b/2023/inputs/day9.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day10.txt b/2023/tests/day10.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day11.txt b/2023/tests/day11.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day12.txt b/2023/tests/day12.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day13.txt b/2023/tests/day13.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day14.txt b/2023/tests/day14.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day15.txt b/2023/tests/day15.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day16.txt b/2023/tests/day16.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day17.txt b/2023/tests/day17.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day18.txt b/2023/tests/day18.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day19.txt b/2023/tests/day19.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day20.txt b/2023/tests/day20.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day21.txt b/2023/tests/day21.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day22.txt b/2023/tests/day22.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day23.txt b/2023/tests/day23.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day24.txt b/2023/tests/day24.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day25.txt b/2023/tests/day25.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day6.txt b/2023/tests/day6.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day7.txt b/2023/tests/day7.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day8.txt b/2023/tests/day8.txt new file mode 100644 index 0000000..e69de29 diff --git a/2023/tests/day9.txt b/2023/tests/day9.txt new file mode 100644 index 0000000..e69de29