From 6d89d17939f240cda533da9b336c2e38e712064b Mon Sep 17 00:00:00 2001 From: kleph Date: Mon, 2 Dec 2024 19:34:32 +0100 Subject: [PATCH] 2023 - Day 12 part 1 - unfinished --- 2023/12/12.py | 9 +++++++++ 2023/12/input_example.txt | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 2023/12/12.py create mode 100644 2023/12/input_example.txt diff --git a/2023/12/12.py b/2023/12/12.py new file mode 100644 index 0000000..c8909e6 --- /dev/null +++ b/2023/12/12.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# 2023 - Advent Of Code 12 - part 1 + +file = 'input_example.txt' +# file = 'input.txt' + +# pylint: disable=consider-using-with +input_lines = [line.strip('\n') for line in open(file, encoding="utf-8")] +print(f'map: ({len(input_lines[0])}, {len(input_lines)})') diff --git a/2023/12/input_example.txt b/2023/12/input_example.txt new file mode 100644 index 0000000..e925935 --- /dev/null +++ b/2023/12/input_example.txt @@ -0,0 +1,6 @@ +???.### 1,1,3 +.??..??...?##. 1,1,3 +?#?#?#?#?#?#?#? 1,3,1,6 +????.#...#... 4,1,1 +????.######..#####. 1,6,5 +?###???????? 3,2,1