Chess Queen
Input: Standard Input
Output: Standard Output
Time limit: 2.000 seconds
You probably know how the game of chess is played and how chess queen operates. Two chess queens are in attacking position when they are on same row, column or diagonal of a chess board. Suppose two such chess queens (one black and the other white) are placed
on (2x2) chess board. They can be in attacking positions in 12 ways, these are shown in the picture below:
Figure: in a (......
阅读全文