diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-07 17:42:27 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-07 17:42:27 +0300 |
| commit | 4ce443495a73befb2fd2d9f547c8f25b454cdc42 (patch) | |
| tree | dd4aeca021498dcba030020d73168490a823b705 | |
| parent | 5e2cf8731f5af3c7ec41e6e7d722c75fd31dc466 (diff) | |
updated prints
| -rw-r--r-- | 2011/qual/d/d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/2011/qual/d/d.py b/2011/qual/d/d.py index a8715a1..0f4a6d5 100644 --- a/2011/qual/d/d.py +++ b/2011/qual/d/d.py @@ -10,7 +10,7 @@ def solve(a): # first flip all pairs for i in range(len(a)): if a[i] != i+1 and a[a[i]-1] == i+1: - print 'flipping %d and %d' % (a[a[i]-1], a[i]) + print 'PAIR FLIP %d and %d' % (a[a[i]-1], a[i]) t = a[a[i]-1] a[a[i]-1] = a[i] a[i] = t @@ -23,7 +23,7 @@ def solve(a): # now find the first mixed index to fix for i in range(len(a)): if a[i] != i+1: - print 'flipping %d and %d' % (a[a[i]-1], a[i]) + print 'FLIP %d and %d' % (a[a[i]-1], a[i]) t = a[a[i]-1] a[a[i]-1] = a[i] a[i] = t |
