parent
448460ad51
commit
bcff4dd573
3 changed files with 2528 additions and 0 deletions
@ -0,0 +1,25 @@ |
||||
lines = [i for i in open("input.txt", 'r').read().splitlines()] |
||||
|
||||
sum = 0 |
||||
|
||||
for l in lines: |
||||
match(l): |
||||
case "A X": |
||||
sum += 4 |
||||
case "A Y": |
||||
sum += 8 |
||||
case "A Z": |
||||
sum += 3 |
||||
case "B X": |
||||
sum += 1 |
||||
case "B Y": |
||||
sum += 5 |
||||
case "B Z": |
||||
sum += 9 |
||||
case "C X": |
||||
sum += 7 |
||||
case "C Y": |
||||
sum += 2 |
||||
case "C Z": |
||||
sum += 6 |
||||
print(sum) |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@ |
||||
A Y |
||||
B X |
||||
C Z |
Loading…
Reference in new issue