You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
690 B

lines = open("input.txt", 'r').read().splitlines()
11 months ago
sum = 0
11 months ago
sum2 = 0
11 months ago
for l in lines:
match(l):
case "A X":
sum += 4
11 months ago
sum2 += 3
11 months ago
case "A Y":
sum += 8
11 months ago
sum2 += 4
11 months ago
case "A Z":
sum += 3
11 months ago
sum2 += 8
11 months ago
case "B X":
sum += 1
11 months ago
sum2 += 1
11 months ago
case "B Y":
sum += 5
11 months ago
sum2 += 5
11 months ago
case "B Z":
sum += 9
11 months ago
sum2 += 9
11 months ago
case "C X":
sum += 7
11 months ago
sum2 += 2
11 months ago
case "C Y":
sum += 2
11 months ago
sum2 += 6
11 months ago
case "C Z":
sum += 6
11 months ago
sum2 += 7
print(sum)
print(sum2)