在 n×nn\times nn×n 棋盘放置 nnn 个皇后,使任意两个皇后不在同一行、列或对角线上。求方案数。
一行一个整数 nnn。
输出方案数。
4
2
1≤n≤131\le n\le131≤n≤13。
使用您的 星源智一OJ 通用账户