![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
dfs
GoForer
这个作者很懒,什么都没留下…
展开
-
洛谷p1219 八皇后
题目描述 检查一个如下的6 x 6的跳棋棋盘,有六个棋子被放置在棋盘上,使得每行、每列有且只有一个,每条对角线(包括两条主对角线的所有平行线)上至多有一个棋子。 上面的布局可以用序列2 4 6 1 3 5来描述,第i个数字表示在第i行的相应位置有一个棋子,如下: 行号 1 2 3 4 5 6 列号 2 4 6 1 3 5 这只是跳棋放置的一个解。请编一个程序找出所有跳棋放置的解。并把它们...原创 2018-03-03 15:49:55 · 200 阅读 · 0 评论 -
Codeforces 550B Preparing Olympiad
B. Preparing Olympiad time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You have n problems. You have estimated the difficul...原创 2018-05-01 11:15:21 · 194 阅读 · 0 评论