摘要: Consider the following two-player game played with a sequence of N positive integers (2 <= N <= 100) laid onto a 1 x N game board. Player 1 starts the 阅读全文
posted @ 2017-01-01 19:12 sigongzi 阅读(403) 评论(0) 推荐(0) 编辑
摘要: Centuries ago, King Arthur and the Knights of the Round Table used to meet every year on New Year's Day to celebrate their fellowship. In remembrance 阅读全文
posted @ 2017-01-01 18:00 sigongzi 阅读(373) 评论(0) 推荐(0) 编辑
摘要: In a certain shop, each kind of product has an integer price. For example, the price of a flower is 2 zorkmids (z) and the price of a vase is 5z. In o 阅读全文
posted @ 2016-12-18 15:54 sigongzi 阅读(554) 评论(0) 推荐(0) 编辑
摘要: Farmer John has two types of cows: black Angus and white Jerseys. While marching 19 of their cows to market the other day, John's wife Farmeress Joann 阅读全文
posted @ 2016-12-18 13:21 sigongzi 阅读(715) 评论(0) 推荐(0) 编辑
摘要: Farmer John owns a large number of fences that must be repaired annually. He traverses the fences by riding a horse along each and every one of them ( 阅读全文
posted @ 2016-12-18 09:47 sigongzi 阅读(499) 评论(0) 推荐(0) 编辑
摘要: Following the success of the magic cube, Mr. Rubik invented its planar version, called magic squares. This is a sheet composed of 8 equal-sized square 阅读全文
posted @ 2016-12-11 18:09 sigongzi 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Consider an ordered set S of strings of N (1 <= N <= 31) bits. Bits, of course, are either 0 or 1. This set of strings is interesting because it is or 阅读全文
posted @ 2016-12-04 20:43 sigongzi 阅读(478) 评论(0) 推荐(0) 编辑
摘要: The factorial of an integer N, written N!, is the product of all the integers from 1 through N inclusive. The factorial quickly becomes very large: 13 阅读全文
posted @ 2016-12-04 19:35 sigongzi 阅读(345) 评论(0) 推荐(0) 编辑
摘要: The cows have developed a new interest in scanning the universe outside their farm with radiotelescopes. Recently, they noticed a very curious microwa 阅读全文
posted @ 2016-12-04 13:43 sigongzi 阅读(350) 评论(0) 推荐(0) 编辑
摘要: For a given set of K prime numbers S = {p1, p2, ..., pK}, consider the set of all numbers whose prime factors are a subset of S. This set contains, fo 阅读全文
posted @ 2016-11-27 14:33 sigongzi 阅读(350) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-23 20:10 sigongzi 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-23 19:55 sigongzi 阅读(4) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-23 19:46 sigongzi 阅读(5) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-23 19:38 sigongzi 阅读(6) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-23 19:21 sigongzi 阅读(6) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-23 19:04 sigongzi 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-04 20:49 sigongzi 阅读(10) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-04 19:13 sigongzi 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Farmer John has a number of pastures on his farm. Cow paths connect some pastures with certain other pastures, forming a field. But, at the present ti 阅读全文
posted @ 2016-10-04 15:47 sigongzi 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Cow Pedigrees Farmer John is considering purchasing a new herd of cows. In this new herd, each mother cow gives birth to two children. The relationshi 阅读全文
posted @ 2016-10-03 08:33 sigongzi 阅读(537) 评论(0) 推荐(0) 编辑