上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页
摘要: Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表 阅读全文
posted @ 2016-08-21 14:42 Jason杰 阅读(168) 评论(0) 推荐(0)
摘要: Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,00 阅读全文
posted @ 2016-08-20 23:53 Jason杰 阅读(226) 评论(0) 推荐(0)
摘要: Description A group of cows grabbed a truck and ventured on an expedition deep into the jungle. Being rather poor drivers, the cows unfortunately mana 阅读全文
posted @ 2016-08-20 20:29 Jason杰 阅读(296) 评论(0) 推荐(0)
摘要: Description People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there 阅读全文
posted @ 2016-08-20 12:25 Jason杰 阅读(289) 评论(0) 推荐(0)
摘要: 给定两个字符串,求它们最长公共子序列的长度。 例如: s = "abcd", t = "becd" 输出3("bcd") 利用动态规划求解 阅读全文
posted @ 2016-08-20 09:58 Jason杰 阅读(192) 评论(0) 推荐(0)
摘要: Description Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes 阅读全文
posted @ 2016-08-19 18:27 Jason杰 阅读(206) 评论(0) 推荐(0)
摘要: Description FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his co 阅读全文
posted @ 2016-08-19 16:49 Jason杰 阅读(152) 评论(0) 推荐(0)
摘要: 实验了一下next_permutation 代码如下 效果如下 阅读全文
posted @ 2016-08-19 16:21 Jason杰 阅读(176) 评论(0) 推荐(0)
摘要: Description 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 <= 10 阅读全文
posted @ 2016-08-19 15:58 Jason杰 阅读(159) 评论(0) 推荐(0)
摘要: Description An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of the p 阅读全文
posted @ 2016-08-19 15:22 Jason杰 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页