summaryrefslogtreecommitdiff
path: root/2010/1c/c/c.py
blob: c5393d5b9b19e5b70bee004b70d7046002dcda74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
f = open('1.in', 'r')
o = open('1.out', 'w')

T = int(f.readline().strip())

for t in xrange(T):
    (M, N) = map(int, f.readline().strip().split(' '))
    grid = [int(f.readline().strip(), 16) for _m in range(M)]
    
    res = grid
    s = "Case #%d: %s\n" % (t+1, res)
    print s
    #o.write(s)