aoc2022/02/2022-12-02-A.py

7 lines
272 B
Python
Raw Normal View History

2022-12-02 18:58:12 +00:00
#!/usr/bin/env python3
scores = [{"A X":4,"A Y":8,"A Z":3,"B X":1,"B Y":5,"B Z":9,"C X":7,"C Y":2,"C Z":6}, {"A X":3,"A Y":4,"A Z":8,"B X":1,"B Y":5,"B Z":9,"C X":2,"C Y":6,"C Z":7}]
print([sum([i[x] for x in open("02/input.txt").read().split("\n")]) for i in scores])