SP8668 ITRIX_E - THE BLACK AND WHITE QUEENS
Description
Subru and Shanmu are playing Chess. Shanmu wonder about **queens** . So he asked Subru the following question
“_How many ways are there to place a black and a white Queen on an M \* N chessboard such that they do not attack each other?_ _The queen can be moved any number of unoccupied squares in a straight line vertically, horizontally, or diagonally.._”
Subru gave the answer in seconds for a given chess board of size M x N (M
Input Format
N/A
Output Format
N/A