Parcourir la source

81: Removed useless width/height check.

Taddeus Kroes il y a 14 ans
Parent
commit
0f434a5096
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      problem81.py

+ 0 - 3
problem81.py

@@ -6,9 +6,6 @@ m = array([l.split(',') for l in open('matrix.txt', 'r').readlines()],
 def add(x, y):
     global m
 
-    h, w = m.shape
-    if x == w or y == h: return
-
     p = []
     if x: p.append(m[y, x - 1])
     if y: p.append(m[y - 1, x])