Cleanup
This commit is contained in:
parent
ebe05d0bcd
commit
cb9eec8464
|
@ -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])
|
|
@ -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:]))
|
2264
2022-12-01-input.txt
2264
2022-12-01-input.txt
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue