day1/exercise/bishop.py
author Puneeth Chaganti <punchagan@fossee.in>
Sun, 10 Jan 2010 18:06:40 +0530
changeset 349 58366fe3839b
parent 64 333092b68926
permissions -rw-r--r--
Moved quiz files into day folders.

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