<b>IndexError</b> Traceback (most recent call last)
Cell <b>In[3], line 25</b>
23 <b>for</b> y <b>in</b> range(N):
24 <b>for</b> x <b>in</b> range(N):
<b>---> 25</b> <b>if</b> A[y][x] == 1:
26 cnt = 1
27 bfs(x, y)
<b>IndexError</b>: list index out of range
에러나는 이유가 있을까요
fjkg33 2년 전
<b>IndexError</b> Traceback (most recent call last) Cell <b>In[3], line 25</b> 23 <b>for</b> y <b>in</b> range(N): 24 <b>for</b> x <b>in</b> range(N): <b>---> 25</b> <b>if</b> A[y][x] == 1: 26 cnt = 1 27 bfs(x, y) <b>IndexError</b>: list index out of range 에러나는 이유가 있을까요