aoc2022/2022-12-01-A.py
2022-12-01 16:14:24 +01:00

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])