Day 9 Completed

put example_input.txt back in repos, for unittest purposes
This commit is contained in:
2023-12-09 09:35:56 +01:00
parent 7b73d8402a
commit f641fbac07
10 changed files with 167 additions and 2 deletions

7
day9/part2.py Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env python3.11
from common import OASISLine
if __name__ == "__main__":
analysis = OASISLine.parse("input.txt")
extrapolation = map(lambda o: o.reduce().extrapolate_back(), analysis)
print(sum(extrapolation))