day1/exercise/bishop.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 28 Oct 2009 16:01:13 +0530
changeset 229 5541c47bc2e8
parent 64 333092b68926
permissions -rw-r--r--
Added sections, subsections and time estimates for session 3 day 1.

r, c = 5, 4
for i in range(1, 9):
    for j in range(1, 9):
        a = r - i
        b = c - j
        if a and b and a == b or a == -b:
            print i, j