摘要: Cow PedigreesSilviu Ganceanu -- 2003Farmer John is considering purchasing a new herd of cows. In this new herd, each mother cow gives birth to two children. The relationships among the cows can easily be represented by one or more binary trees with a total of N (3 <= N < 200) nodes. The trees 阅读全文
posted @ 2012-09-04 21:26 mtry 阅读(688) 评论(0) 推荐(0)
摘要: Money SystemsThe cows have not only created their own government but they have chosen to create their own money system. In their own rebellious way, they are curious about values of coinage. Traditionally, coins come in values like 1, 5, 10, 20 or 25, 50, and 100 units, sometimes with a 2 unit coin 阅读全文
posted @ 2012-09-04 15:57 mtry 阅读(472) 评论(0) 推荐(0)
摘要: Controlling CompaniesSome companies are partial owners of other companies because they have acquired part of their total shares of stock. For example, Ford owns 12% of Mazda. It is said that a company A controls company B if at least one of the following conditions is satisfied:Company A = Company B 阅读全文
posted @ 2012-09-04 15:23 mtry 阅读(410) 评论(0) 推荐(0)