rename stuff

This commit is contained in:
Maya Herrscher committed 2022-12-03 15:08:59 +01:00
1 parent 7c3d439f6e
commit 97ddc36b62
325 files changed
+85

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
--- Day 1: Calorie Counting ---
Santa's reindeer typically eat regular reindeer food, but they need a lot of magical energy to deliver presents on Christmas. For that, their favorite snack is a special type of star fruit that only grows deep in the jungle. The Elves have brought you on their annual expedition to the grove where the fruit grows.
To supply enough magical energy, the expedition needs to retrieve a minimum of fifty stars by December 25th. Although the Elves assure you that the grove has plenty of fruit, you decide to grab any fruit you see along the way, just in case.
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
The jungle must be too overgrown and difficult to navigate in vehicles or access from the air; the Elves' expedition traditionally goes on foot. As your boats approach land, the Elves begin taking inventory of their supplies. One important consideration is food - in particular, the number of Calories each Elf is carrying (your puzzle input).
The Elves take turns writing down the number of Calories contained by the various meals, snacks, rations, etc. that they've brought with them, one item per line. Each Elf separates their own inventory from the previous Elf's inventory (if any) by a blank line.
For example, suppose the Elves finish writing their items' Calories and end up with the following list:
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
This list represents the Calories of the food carried by five Elves:
The first Elf is carrying food with 1000, 2000, and 3000 Calories, a total of 6000 Calories.
The second Elf is carrying one food item with 4000 Calories.
The third Elf is carrying food with 5000 and 6000 Calories, a total of 11000 Calories.
The fourth Elf is carrying food with 7000, 8000, and 9000 Calories, a total of 24000 Calories.
The fifth Elf is carrying one food item with 10000 Calories.
In case the Elves get hungry and need extra snacks, they need to know which Elf to ask: they'd like to know how many Calories are being carried by the Elf carrying the most Calories. In the example above, this is 24000 (carried by the fourth Elf).
Find the Elf carrying the most Calories. How many total Calories is that Elf carrying?
Your puzzle answer was 68467.
--- Part Two ---
By the time you calculate the answer to the Elves' question, they've already realized that the Elf carrying the most Calories of food might eventually run out of snacks.
To avoid this unacceptable situation, the Elves would instead like to know the total Calories carried by the top three Elves carrying the most Calories. That way, even if one of those Elves runs out of snacks, they still have two backups.
In the example above, the top three Elves are the fourth Elf (with 24000 Calories), then the third Elf (with 11000 Calories), then the fifth Elf (with 10000 Calories). The sum of the Calories carried by these three elves is 45000.
Find the top three Elves carrying the most Calories. How many Calories are those Elves carrying in total?
Your puzzle answer was 203420.
Both parts of this puzzle are complete! They provide two gold stars: **
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env python3
import sys
import numpy as np
if __name__ == '__main__':
lines = open(sys.argv[1]).read()
elves = [sum([int(i.strip('\n')) for i in line.split('\n')]) for line in lines.split('\n\n')[:-1]]
# challenge 1
res1 = str(max(elves))
print("challenge 1:" + "\n" + res1 + "\n")
# challenge 2
sorted_elves = sorted(elves, reverse = True)
cals = sorted_elves[0] + sorted_elves[1] + sorted_elves[2]
res2 = str(cals)
print("challenge 2:" + "\n" + res2 + "\n")
+2240
View File
File diff suppressed because it is too large. Load diff
+48
View File
@@ -0,0 +1,48 @@
--- Day 2: Rock Paper Scissors ---
The Elves begin to set up camp on the beach. To decide whose tent gets to be closest to the snack storage, a giant Rock Paper Scissors tournament is already in progress.
Rock Paper Scissors is a game between two players. Each game contains many rounds; in each round, the players each simultaneously choose one of Rock, Paper, or Scissors using a hand shape. Then, a winner for that round is selected: Rock defeats Scissors, Scissors defeats Paper, and Paper defeats Rock. If both players choose the same shape, the round instead ends in a draw.
Appreciative of your help yesterday, one Elf gives you an encrypted strategy guide (your puzzle input) that they say will be sure to help you win. "The first column is what your opponent is going to play: A for Rock, B for Paper, and C for Scissors. The second column--" Suddenly, the Elf is called away to help with someone's tent.
The second column, you reason, must be what you should play in response: X for Rock, Y for Paper, and Z for Scissors. Winning every time would be suspicious, so the responses must have been carefully chosen.
The winner of the whole tournament is the player with the highest score. Your total score is the sum of your scores for each round. The score for a single round is the score for the shape you selected (1 for Rock, 2 for Paper, and 3 for Scissors) plus the score for the outcome of the round (0 if you lost, 3 if the round was a draw, and 6 if you won).
Since you can't be sure if the Elf is trying to help you or trick you, you should calculate the score you would get if you were to follow the strategy guide.
For example, suppose you were given the following strategy guide:
A Y
B X
C Z
This strategy guide predicts and recommends the following:
In the first round, your opponent will choose Rock (A), and you should choose Paper (Y). This ends in a win for you with a score of 8 (2 because you chose Paper + 6 because you won).
In the second round, your opponent will choose Paper (B), and you should choose Rock (X). This ends in a loss for you with a score of 1 (1 + 0).
The third round is a draw with both players choosing Scissors, giving you a score of 3 + 3 = 6.
In this example, if you were to follow the strategy guide, you would get a total score of 15 (8 + 1 + 6).
What would your total score be if everything goes exactly according to your strategy guide?
Your puzzle answer was 13675.
--- Part Two ---
The Elf finishes helping with the tent and sneaks back over to you. "Anyway, the second column says how the round needs to end: X means you need to lose, Y means you need to end the round in a draw, and Z means you need to win. Good luck!"
The total score is still calculated in the same way, but now you need to figure out what shape to choose so the round ends as indicated. The example above now goes like this:
In the first round, your opponent will choose Rock (A), and you need the round to end in a draw (Y), so you also choose Rock. This gives you a score of 1 + 3 = 4.
In the second round, your opponent will choose Paper (B), and you choose Rock so you lose (X) with a score of 1 + 0 = 1.
In the third round, you will defeat your opponent's Scissors with Rock for a score of 1 + 6 = 7.
Now that you're correctly decrypting the ultra top secret strategy guide, you would get a total score of 12.
Following the Elf's instructions for the second column, what would your total score be if everything goes exactly according to your strategy guide?
Your puzzle answer was 14184.
Both parts of this puzzle are complete! They provide two gold stars: **
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env python3
import sys
import numpy as np
def calc_score(game):
a = ['A', 'B', 'C'].index(game[0])
b = ['X', 'Y', 'Z'].index(game[1])
if a == b: return 1 + b + 3
elif b == ((a-1) % 3): return 1 + b
else: return 1 + b + 6
def calc_moves(game):
a = ['A', 'B', 'C'].index(game[0])
o = ['X', 'Y', 'Z'].index(game[1])
if o == 1: return 1 + a + 3
elif o == 0: return 1 + ((a - 1) % 3)
else: return 1 + ((a + 1) % 3) + 6
if __name__ == '__main__':
games = [tuple(line.strip('\n').split(' ')) for line in open(sys.argv[1])]
# challenge 1
scores = list(map(calc_score,games))
res1 = str(np.sum(scores))
print("challenge 1:" + "\n" + res1 + "\n")
# challenge 2
scores = list(map(calc_moves,games))
res2 = str(np.sum(scores))
print("challenge 2:" + "\n" + res2 + "\n")
+2500
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -0,0 +1,3 @@
A Y
B X
C Z
View File
Whitespace-only changes.
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env python3
import sys,string
import numpy as np
def find_badge(r):
r1,r2,r3 = r
i1 = set(r1).intersection(set(r2))
i2 = set(r3).intersection(i1)
item = list(i2)[0]
p = string.ascii_letters.index(item) + 1
return p
if __name__ == '__main__':
sacks = [list(line.strip('\n')) for line in open(sys.argv[1])]
# challenge 1
priorities = 0
for sack in sacks:
item = list(set(sack[:len(sack)//2]).intersection(set(sack[len(sack)//2:])))[0]
priorities = priorities + string.ascii_letters.index(item) + 1
res1 = str(priorities)
print("challenge 1:" + "\n" + res1 + "\n")
# challenge 2
s = np.array_split(np.array(sacks,dtype=object),len(sacks)/3)
prios = list(map(find_badge,s))
res2 = str(np.sum(prios))
print("challenge 2:" + "\n" + res2 + "\n")
+300
View File
@@ -0,0 +1,300 @@
PnJJfVPBcfVnnPnBFFcggttrtgCrjDtSjzSS
llWlLbmmdLLwLbqGdmTmbZfCQtzrMQfrjSzrtSrMqgMt
sHlZTsWZwGGlZmGTmdlZbhJNRPphVfRvVnRBsRsJJV
fsHtVbjtqstBghhwwPBw
SDQzzSzQrQMmmQlmlcNcJLZPgLrVZTdCddhgdPwwCw
JmSWSVGGlJJbRsbpWHfbRj
tJndRtwtddPvllvfrldrfPpHWDgglFDWWmMmHWmHpZlS
BBJTTjCsJWZCmSHSZD
LhqLcVzshTNjhqhcjLLTLjbTnGndfdwrfPRVRrdnwftQwJRv
wHlPJZwbbZfqbFwqFZfrrcrJrtMWSMMVtVcJht
NzzzNBjNfLzvGfDNjMhVhrrMShLchsRVLs
DDdmmgBGDNdgfgZggnZbZHln
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FpmTszmwhGGFhhtppNfffVlvZvHCCVZzbfzvS
mTTsmTRGstsFhWwtWjPRdjnJdjJnLjcLNd
MfBDjllflHLTpDhhppDDbp
NZBBnGJNnNPWTcTTmVhZCh
PSzgSgwrnzrSzBGJSJrSLQqfMHQfqgRgfjHLljll
RgbNmBbqgWHWRNRqHtcMlMwJJjcDtVlD
SzpFLGPddSGnnSLQZLtJJcclDlVjDQwMhDcc
LtTZCTttRqqqvqTN
+6
View File
@@ -0,0 +1,6 @@
vJrwpWtwJgWrhcsFMMfFFhFp
jqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL
PmmdzqPrVvPwwTWBwg
wMqvLMZHhHMvwLHjbvcjnnSBnvTQFn
ttgJtRGJQctTZtZT
CrZsJsPPZsGzwwsLwLmpwMDw
View File
Whitespace-only changes.
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
import sys
if __name__ == '__main__':
nums = [int(line.strip('\n')) for line in open(sys.argv[1])]
# challenge 1
res1 = ""
print("challenge 1:" + "\n" + res1 + "\n")
# challenge 2
res2 = ""
print("challenge 2:" + "\n" + res2 + "\n")
View File
Whitespace-only changes.