summaryrefslogtreecommitdiff
path: root/2011
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2011-05-07 22:22:42 +0300
committerYuval Adam <yuv.adm@gmail.com>2011-05-07 22:22:42 +0300
commitdcaa34820c62a6bc83983272c61cad7b5aaf586b (patch)
treea275b6d818dcbc78ce78f3214985159476cbd5e8 /2011
parent73d0129f56806188cbd8bfffded85c78ea7bcdee (diff)
print
Diffstat (limited to '2011')
-rw-r--r--2011/qual/d/d.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/2011/qual/d/d.py b/2011/qual/d/d.py
index a958c8a..32f6101 100644
--- a/2011/qual/d/d.py
+++ b/2011/qual/d/d.py
@@ -5,8 +5,7 @@ def solve(a):
# stop if solved
while a != sol:
try:
- print "%s is not %s" % (a, sol)
- next = False
+ print "%s not sorted" % a
# first flip all pairs
for i in range(len(a)):
if a[i] != i+1 and a[a[i]-1] == i+1: