set up day 5

This commit is contained in:
Heiko Ludwig 2024-12-05 09:08:58 +01:00
parent 535b0f0f08
commit 0f8c9c22be
3 changed files with 1396 additions and 0 deletions

16
day_05/program.py Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env python3
# https://adventofcode.com/2024/day/5
def get_lines(filename: str) -> list:
with open(filename, "r") as file:
return [line.strip() for line in file.readlines()]
def main():
lines = get_lines("sample-input.txt")
# lines = get_lines("input.txt")
if __name__ == '__main__':
main()