You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
140 B
2 lines
140 B
2 years ago
|
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:]))
|