Poetry stuff.

This commit is contained in:
Mikael CAPELLE
2023-12-19 15:39:10 +01:00
parent 41b07cfe83
commit 2959387bcd
238 changed files with 571 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
import sys
blocks = sys.stdin.read().split("\n\n")
values = sorted(sum(map(int, block.split())) for block in blocks)
print(f"answer 1 is {values[-1]}")
print(f"answer 2 is {sum(values[-3:])}")