diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-07 14:51:47 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-07 14:51:47 +0300 |
| commit | 694f2f82bb1e9a8c612eb81a88ab037a369865c5 (patch) | |
| tree | d16e2d92fa10a370678296f26a462c67f390213e /2011/qual/b/b.py | |
| parent | 56a19725f7a66a94b85c10d85b73d25ec47ffabe (diff) | |
solve a stupid printing bug in b
Diffstat (limited to '2011/qual/b/b.py')
| -rw-r--r-- | 2011/qual/b/b.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/2011/qual/b/b.py b/2011/qual/b/b.py index 4beebd9..d85d38c 100644 --- a/2011/qual/b/b.py +++ b/2011/qual/b/b.py @@ -1,5 +1,5 @@ -f = open('2.in', 'r') -o = open('2.out', 'w') +f = open('3.in', 'r') +o = open('3.out', 'w') T = int(f.readline().strip()) @@ -18,7 +18,6 @@ for t in xrange(T): el = [] print cd, od, s for c in s: - print el if not el: el.append(c) @@ -39,10 +38,9 @@ for t in xrange(T): else: el.append(c) - res = el + res = '[' + ', '.join(el) + ']' s = "Case #%d: %s\n" % (t+1, res) - print s - #o.write(s) + o.write(s) f.close() o.close()
\ No newline at end of file |
