摘要: Problem DescriptionFarmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn for the cows on a number of squares. Regrettably, some of the squares are infertile and can't be planted. Canny FJ knows that t 阅读全文
posted @ 2013-09-07 22:09 persistent codeants 阅读(262) 评论(0) 推荐(0)
摘要: 1056. Computer NetTime limit: 2.0 second Memory limit: 64 MBBackgroundComputer net is created by consecutive computer plug-up to one that has already been connected to the net. Each new computer gets an ordinal number, but the protocol contains the number of its parent computer in the net. Thus, pro 阅读全文
posted @ 2013-09-07 20:22 persistent codeants 阅读(276) 评论(0) 推荐(0)
摘要: 1182. Team Them Up!Time limit: 1.0 second Memory limit: 64 MBYour task is to divide a number of persons into two teams, in such a way, that:everyone belongs to one of the teams;every team has at least one member;every person in the team knows every other person in his team;teams are as close in thei 阅读全文
posted @ 2013-09-07 08:55 persistent codeants 阅读(383) 评论(0) 推荐(0)