Day 1 part 2
This commit is contained in:
parent
d5431f6dee
commit
5827c05c07
1 changed files with 2 additions and 0 deletions
2
1pt2.py
Normal file
2
1pt2.py
Normal 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:]))
|
Loading…
Reference in a new issue