day1/exercise/bishop.py
author Puneeth Chaganti <punchagan@fossee.in>
Sun, 10 Jan 2010 23:09:00 +0530
changeset 353 8999d0a3fc9d
parent 64 333092b68926
permissions -rw-r--r--
Renamed day1 exercise session as session5.

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