From 3b324b00075f7c166b59d411ee923900d0c3e543 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Sat, 11 Dec 2021 08:55:01 +0100 Subject: [PATCH] add day 11 input file --- 2021/.input/day11 | 10 ++++++++++ 2021/Python/day11.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 2021/.input/day11 diff --git a/2021/.input/day11 b/2021/.input/day11 new file mode 100644 index 0000000..a2f9f5b --- /dev/null +++ b/2021/.input/day11 @@ -0,0 +1,10 @@ +6788383436 +5526827441 +4582435866 +5152547273 +3746433621 +2465145365 +6324887128 +8537558745 +4718427562 +2283324746 \ No newline at end of file diff --git a/2021/Python/day11.py b/2021/Python/day11.py index 6c59f16..e115357 100644 --- a/2021/Python/day11.py +++ b/2021/Python/day11.py @@ -3,7 +3,7 @@ from numpy.lib.stride_tricks import as_strided def load(): - with open('../.input/scratchpad') as f: + with open('../.input/day11') as f: lines = list(map(str.strip, f.readlines())) return np.array([int(num) for line in lines for num in line]).reshape((-1, len(lines)))