#P1562. 还是 N 皇后
还是 N 皇后
Description
As the title says, this is the famous -Queens problem.
Input Format
The first line contains an integer . Then follow lines, each with characters, describing a board; * means placeable, . means not placeable.
Output Format
Output the total number of solutions.
4
**.*
****
****
****
1
Hint
.
Translated by ChatGPT 5
京公网安备 11011102002149号