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

17
day02/part2.py Normal file
View File

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