Day 1 part 2

This commit is contained in:
Skye 2022-12-13 16:19:30 +09:00
parent d5431f6dee
commit 5827c05c07
Signed by: me
GPG key ID: 0104BC05F41B77B8

2
1pt2.py Normal file
View file

@ -0,0 +1,2 @@
with open("input1.txt") as f:
print(sum(sorted(map(lambda a: sum(map(lambda b: int(b), a.split('\n'))) , f.read().split("\n\n")))[-3:]))