add day 11 input file
This commit is contained in:
parent
cc9e981422
commit
3b324b0007
10
2021/.input/day11
Normal file
10
2021/.input/day11
Normal file
|
@ -0,0 +1,10 @@
|
|||
6788383436
|
||||
5526827441
|
||||
4582435866
|
||||
5152547273
|
||||
3746433621
|
||||
2465145365
|
||||
6324887128
|
||||
8537558745
|
||||
4718427562
|
||||
2283324746
|
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue