From 1fdad9a5a4c43918e657698727ea579cce4fc22d Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 14 May 2011 22:18:31 +0300 Subject: got the grid import --- 2010/1c/c/1.in | 39 +++++++++++++++++++++++++++++++-------- 2010/1c/c/1.out | 0 2010/1c/c/c.py | 6 +++--- 3 files changed, 34 insertions(+), 11 deletions(-) create mode 100644 2010/1c/c/1.out (limited to '2010/1c/c') diff --git a/2010/1c/c/1.in b/2010/1c/c/1.in index 1eae983..b2a5743 100644 --- a/2010/1c/c/1.in +++ b/2010/1c/c/1.in @@ -1,9 +1,32 @@ 4 -1 2 3 -abc -4 5 6 -def -7 8 9 -ghi -8 8 8 -jkl \ No newline at end of file +15 20 +55555 +FFAAA +2AAD5 +D552A +2AAD5 +D542A +4AD4D +B52B2 +52AAD +AD552 +AA52D +AAAAA +5AA55 +A55AA +5AA55 +4 4 +0 +0 +0 +0 +4 4 +3 +3 +C +C +4 4 +6 +9 +9 +6 \ No newline at end of file diff --git a/2010/1c/c/1.out b/2010/1c/c/1.out new file mode 100644 index 0000000..e69de29 diff --git a/2010/1c/c/c.py b/2010/1c/c/c.py index 7bc039a..c5393d5 100644 --- a/2010/1c/c/c.py +++ b/2010/1c/c/c.py @@ -4,10 +4,10 @@ o = open('1.out', 'w') T = int(f.readline().strip()) for t in xrange(T): - (n, m, o) = map(int, f.readline().strip().split(' ')) - l = f.readline().strip() + (M, N) = map(int, f.readline().strip().split(' ')) + grid = [int(f.readline().strip(), 16) for _m in range(M)] - res = str(n) + str(m) + str(o) + l + res = grid s = "Case #%d: %s\n" % (t+1, res) print s #o.write(s) -- cgit v1.3.1