搜索
jiruqianlong123
这个作者很懒,什么都没留下…
展开
-
棋盘问题
在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= ...原创 2018-07-26 20:30:20 · 104 阅读 · 0 评论 -
POJ1111
Technicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an object is one useful...原创 2018-07-26 19:16:56 · 316 阅读 · 0 评论 -
HDOJ-1016
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles should be a prime. Note: the number of f...原创 2018-07-26 19:11:13 · 166 阅读 · 0 评论 -
POJ-2386
Lake Counting思路:DFS+递归 题目: Due to recent rains, water has pooled in various places in Farmer John’s field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <原创 2018-07-26 18:54:39 · 313 阅读 · 0 评论