- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 DFS——A:N皇后问题 解题报告
N皇后问题 Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。
2016-07-22 17:26:34
1064
原创 二分查找——D:Pie 解题报告
Pie Description My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to m
2016-07-22 14:13:20
1245
原创 二分查找——C:Sacrament of the sum 解题报告
Sacrament of the sum Description — The Brother of mine, the Head of Monastic Order wants to know tomorrow about the results long-term researches. He wants to see neither more nor less than the Sum
2016-07-22 14:02:55
739
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅