Solve day 1

This commit is contained in:
Nettika
2023-12-08 20:37:46 -08:00
parent 95c294aa61
commit cfa52e1594
4 changed files with 1123 additions and 0 deletions

19
01/__main__.py Normal file
View File

@@ -0,0 +1,19 @@
from puzzle import solve_pt_1, solve_pt_2
from pathlib import Path
def main():
input = (
Path(__file__)
.parent.joinpath("calibration_document.txt")
.read_text()
.strip()
.split("\n")
)
print("Calibration Numbers")
print("Part 1 - ", solve_pt_1(input))
print("Part 2 - ", solve_pt_2(input))
if __name__ == "__main__":
main()