From 40d6a93d9065e45f18c217e281936eff57ba37d6 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 7 May 2011 03:08:47 +0300 Subject: finished c --- 2011/qual/b/1.in | 7 +++++++ 2011/qual/b/1.out | 0 2011/qual/b/b.py | 9 ++++++--- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 2011/qual/b/1.out (limited to '2011/qual/b') diff --git a/2011/qual/b/1.in b/2011/qual/b/1.in index e69de29..11cd4a7 100644 --- a/2011/qual/b/1.in +++ b/2011/qual/b/1.in @@ -0,0 +1,7 @@ +3 +2 +2 1 +3 +1 3 2 +4 +2 1 4 3 \ No newline at end of file diff --git a/2011/qual/b/1.out b/2011/qual/b/1.out new file mode 100644 index 0000000..e69de29 diff --git a/2011/qual/b/b.py b/2011/qual/b/b.py index f3841a7..f9f028a 100644 --- a/2011/qual/b/b.py +++ b/2011/qual/b/b.py @@ -4,11 +4,14 @@ o = open('1.out', 'w') T = int(f.readline().strip()) for t in xrange(T): - (n, k) = map(int, f.readline().strip().split(' ')) + _n = f.readline().strip().split(' ') + el = map(int, f.readline().strip().split(' ')) + + res = el s = "Case #%d: %s\n" % (t+1, res) - #print s - o.write(s) + print s + #o.write(s) f.close() o.close() \ No newline at end of file -- cgit v1.3.1