9 lines
244 B
Python
9 lines
244 B
Python
|
#!/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])
|