1
0
Fork 0
aoc2022/01/solution.py

7 lines
178 B
Python
Raw Normal View History

2022-12-02 03:11:23 +01:00
#!/usr/bin/env python3
import sys
res = sorted(sum(map(int, l.split("\n"))) for l in sys.stdin.read().strip().split("\n\n"))[-3:]
print(f"Silver: {res[-1]}\nGold: {sum(res)}")