Hack løsning
This commit is contained in:
parent
d2744716a4
commit
9bdcd2cc34
0
01/2022-12-01-A.py
Normal file → Executable file
0
01/2022-12-01-A.py
Normal file → Executable file
0
01/2022-12-01-B.py
Normal file → Executable file
0
01/2022-12-01-B.py
Normal file → Executable file
0
01/2022-12-01-golf.py
Normal file → Executable file
0
01/2022-12-01-golf.py
Normal file → Executable file
6
02/2022-12-02-A.py
Normal file
6
02/2022-12-02-A.py
Normal 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])
|
||||
|
Loading…
Reference in a new issue