add day 11 input file

This commit is contained in:
Maciej Jur 2021-12-11 08:55:01 +01:00
parent cc9e981422
commit 3b324b0007
2 changed files with 11 additions and 1 deletions

10
2021/.input/day11 Normal file
View file

@ -0,0 +1,10 @@
6788383436
5526827441
4582435866
5152547273
3746433621
2465145365
6324887128
8537558745
4718427562
2283324746

View file

@ -3,7 +3,7 @@ from numpy.lib.stride_tricks import as_strided
def load(): def load():
with open('../.input/scratchpad') as f: with open('../.input/day11') as f:
lines = list(map(str.strip, f.readlines())) lines = list(map(str.strip, f.readlines()))
return np.array([int(num) for line in lines for num in line]).reshape((-1, len(lines))) return np.array([int(num) for line in lines for num in line]).reshape((-1, len(lines)))