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/c.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '2010/1c/c/c.py') 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