Hack løsning

This commit is contained in:
Rasmus Malver 2022-12-02 19:58:12 +01:00
parent d2744716a4
commit 9bdcd2cc34
4 changed files with 6 additions and 0 deletions

0
01/2022-12-01-A.py Normal file → Executable file
View File

0
01/2022-12-01-B.py Normal file → Executable file
View File

0
01/2022-12-01-golf.py Normal file → Executable file
View File

6
02/2022-12-02-A.py Normal file
View File

@ -0,0 +1,6 @@
#!/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])