diff options
Diffstat (limited to '2011/qual/b')
| -rw-r--r-- | 2011/qual/b/1.in | 7 | ||||
| -rw-r--r-- | 2011/qual/b/1.out | 0 | ||||
| -rw-r--r-- | 2011/qual/b/b.py | 9 |
3 files changed, 13 insertions, 3 deletions
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 --- /dev/null +++ b/2011/qual/b/1.out 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 |
