随笔分类 -  搜索

上一页 1 2 3

【POJ - 1321】棋盘问题 (dfs)
摘要:棋盘问题 Descriptions: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正 阅读全文

posted @ 2019-06-02 15:02 Sky丨Star 阅读(1305) 评论(0) 推荐(1)

【OpenJ_Bailian - 2192】Zipper(dfs)
摘要:Zipper Descriptions: Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two str 阅读全文

posted @ 2019-05-29 15:51 Sky丨Star 阅读(450) 评论(0) 推荐(0)

【OpenJ_Bailian - 4001】 Catch That Cow(bfs+优先队列)
摘要:Catch That Cow Descriptions: Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point 阅读全文

posted @ 2019-05-27 23:17 Sky丨Star 阅读(334) 评论(0) 推荐(0)

上一页 1 2 3

导航