diff options
author | Thomas Voss <thomasvoss@live.com> | 2021-12-15 22:24:05 +0100 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2021-12-15 22:24:05 +0100 |
commit | f05d35537b96c9f0595caa7ef09bc8802bacfc43 (patch) | |
tree | d9637d307b2fe015611196c6a5c14542008ea6e9 /2021/15 | |
parent | d418e965fb28182dd23b67c450d5cde5ba72742f (diff) |
I like nested functions
Diffstat (limited to '2021/15')
-rw-r--r-- | 2021/15/puzzles.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/2021/15/puzzles.py b/2021/15/puzzles.py index dd19eef..8cdd19c 100644 --- a/2021/15/puzzles.py +++ b/2021/15/puzzles.py @@ -36,11 +36,11 @@ def elongate(grid: matrix[int]) -> matrix[int]: def main() -> None: with open("input", "r", encoding="utf-8") as f: + # START PART 1 data = read_int_matrix(f) - - # START PART 2 - data = elongate(data) - # END PART 2 + # END PART 1 START PART 2 + data = elongate(read_int_matrix(f)) + # END PART 2 X_UPPER = len(data) Y_UPPER = len(data[0]) |