This commit is contained in:
Rasmus Malver 2022-12-01 16:15:36 +01:00
parent ebe05d0bcd
commit cb9eec8464
3 changed files with 0 additions and 2280 deletions

View file

@ -1,8 +0,0 @@
#!/usr/bin/env python3
with open("2022-12-01-input.txt", "r") as f:
elves = [x.split("\n") for x in f.read().split("\n\n")]
ints = [[int(j) for j in i] for i in elves]
sums = sorted([sum(i) for i in ints])
print(sums[-1])

View file

@ -1,8 +0,0 @@
#!/usr/bin/env python3
with open("2022-12-01-input.txt", "r") as f:
elves = [x.split("\n") for x in f.read().split("\n\n")]
ints = [[int(j) for j in i] for i in elves]
sums = sorted([sum(i) for i in ints])
print(sum(sums[-3:]))

File diff suppressed because it is too large Load diff