2023/day9/part1.py
Fedaya f641fbac07 Day 9 Completed
put example_input.txt back in repos, for unittest purposes
2023-12-09 09:35:56 +01:00

8 lines
227 B
Python
Executable File

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