summaryrefslogtreecommitdiff
path: root/2010
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2011-05-14 22:18:31 +0300
committerYuval Adam <yuv.adm@gmail.com>2011-05-14 22:18:31 +0300
commit1fdad9a5a4c43918e657698727ea579cce4fc22d (patch)
treeb3d6da086cd9fb2ac4289ee70c79f4666d69d7c0 /2010
parentf9e02aeca94369ec904f23f938616e02cef2a253 (diff)
got the grid import
Diffstat (limited to '2010')
-rw-r--r--2010/1c/c/1.in39
-rw-r--r--2010/1c/c/1.out0
-rw-r--r--2010/1c/c/c.py6
3 files changed, 34 insertions, 11 deletions
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
--- /dev/null
+++ b/2010/1c/c/1.out
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)