{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\n在一个大小为n*n的正方形棋盘上面摆放n个棋子,棋子间没有区别。\u003cbr\u003e\n要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列。\u003cbr\u003e\n并且要求,在棋子相对棋盘各边框45°的方向上均不能有其他的棋子。\u003cbr\u003e\n要求输出摆放n个棋子的所有可行的摆放方案C。\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\n输入含有多组测试数据。 \u003cbr\u003e\n每组数据共一行,为一个正整数 n ,表示棋盘大小为n*n,以及摆放棋子的数目为n。\u003cbr\u003e\n n \u0026lt;\u003d 10 。\u003cbr\u003e\n当输入为 n\u003d0 时,表示输入结束。\u003cbr\u003e\n\u003c/div\u003e\n"}},{"title":"Output","value":{"format":"HTML","content":"共有若干行,每行一个正整数,表示对应输入行的棋子摆放方案数C。"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1\n8\n5\n0\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e1\n92\n10\u003c/pre\u003e"}}]}