This commit is contained in:
Mikaël Capelle
2022-12-03 11:42:09 +01:00
parent 228f7501bb
commit b8cb2cb0b9
5 changed files with 338 additions and 8 deletions

View File

@@ -1,9 +1,8 @@
# -*- encoding: utf-8 -*-
from pathlib import Path
import sys
with open(Path(__file__).parent.joinpath("inputs", "day1.txt")) as fp:
lines = fp.readlines()
lines = sys.stdin.readlines()
# we store the list of calories for each elf in values, and we use the last element
# of values to accumulate