This commit is contained in:
Sebastian Seedorf
2022-12-02 12:01:20 +01:00
parent ad69b9741f
commit 54a60fcb7d
5 changed files with 2537 additions and 0 deletions

16
day02/part1.py Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python3
lines = (x.strip() for x in open("input.txt"))
results = {
'A X': 1 + 3,
'A Y': 2 + 6,
'A Z': 3,
'B X': 1,
'B Y': 2 + 3,
'B Z': 3 + 6,
'C X': 1 + 6,
'C Y': 2,
'C Z': 3 + 3
}
print(sum(results[line] for line in lines))