summaryrefslogtreecommitdiff
path: root/2011/qual
diff options
context:
space:
mode:
Diffstat (limited to '2011/qual')
-rw-r--r--2011/qual/d/d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/2011/qual/d/d.py b/2011/qual/d/d.py
index b1b6500..a958c8a 100644
--- a/2011/qual/d/d.py
+++ b/2011/qual/d/d.py
@@ -28,8 +28,8 @@ def solve(a):
raise Exception
except:
continue
+ assert steps <= (len(a)-1)*2 # upper bound
return steps
-
f = open('2.in', 'r')
o = open('2.out', 'w')