diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-14 22:18:31 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-14 22:18:31 +0300 |
| commit | 1fdad9a5a4c43918e657698727ea579cce4fc22d (patch) | |
| tree | b3d6da086cd9fb2ac4289ee70c79f4666d69d7c0 /2010/1c/c/c.py | |
| parent | f9e02aeca94369ec904f23f938616e02cef2a253 (diff) | |
got the grid import
Diffstat (limited to '2010/1c/c/c.py')
| -rw-r--r-- | 2010/1c/c/c.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
