Solve day 4

This commit is contained in:
Nettika
2023-12-09 20:19:35 -08:00
parent 637b097245
commit 001eeb692f
6 changed files with 315 additions and 0 deletions

13
04/__main__.py Normal file
View File

@@ -0,0 +1,13 @@
from pathlib import Path
from puzzle import solve_pt_1, solve_pt_2
def main():
input = Path(__file__).parent.joinpath("cards.txt").read_text().strip().split("\n")
print("Total Points of Scratchcards -", solve_pt_1(input))
print("Total Scratchcard Copies -", solve_pt_2(input))
if __name__ == "__main__":
main()