2013年2月12日

USACO2.3.5--Controlling Companies

摘要: 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 @ 2013-02-12 21:44 仗剑奔走天涯 阅读(210) 评论(0) 推荐(0) 编辑

USACO2.3.2--Cow Pedigrees

摘要: 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 @ 2013-02-12 15:46 仗剑奔走天涯 阅读(230) 评论(0) 推荐(0) 编辑

导航