From 5827c05c0796dd7b897cd4e3136650660abc162d Mon Sep 17 00:00:00 2001 From: Skye Date: Tue, 13 Dec 2022 16:19:30 +0900 Subject: [PATCH] Day 1 part 2 --- 1pt2.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 1pt2.py diff --git a/1pt2.py b/1pt2.py new file mode 100644 index 0000000..7a387ab --- /dev/null +++ b/1pt2.py @@ -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:])) \ No newline at end of file