diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-07 22:22:42 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-07 22:22:42 +0300 |
| commit | dcaa34820c62a6bc83983272c61cad7b5aaf586b (patch) | |
| tree | a275b6d818dcbc78ce78f3214985159476cbd5e8 | |
| parent | 73d0129f56806188cbd8bfffded85c78ea7bcdee (diff) | |
print
| -rw-r--r-- | 2011/qual/d/d.py | 3 |
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: |
