diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2011-05-14 22:35:26 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2011-05-14 22:35:26 +0300 |
| commit | 8265fe327cc95f32c345b663d9b31ef377e5ec62 (patch) | |
| tree | 43ebc1f39b871b3a5ad6ba77104788e09f366783 /2010/1c/c | |
| parent | 1fdad9a5a4c43918e657698727ea579cce4fc22d (diff) | |
got the bit mask
Diffstat (limited to '2010/1c/c')
| -rw-r--r-- | 2010/1c/c/c.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/2010/1c/c/c.py b/2010/1c/c/c.py index c5393d5..a242cb6 100644 --- a/2010/1c/c/c.py +++ b/2010/1c/c/c.py @@ -1,12 +1,18 @@ f = open('1.in', 'r') o = open('1.out', 'w') +M1 = 0xaaaaaaaa +M0 = M1 >> 1 + 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)] + nextSquare = min(M, N) + + res = grid s = "Case #%d: %s\n" % (t+1, res) print s |
