Your old uncle Tom inherited a piece of land from his great-great-uncle. Originally, the property had been in the shape of a rectangle. A long time ago, however, his great-great-uncle decided to divide the land into a grid of small squares. He turned some of the squares into ponds, for he loved to hunt ducks and wanted to attract them to his property. (You cannot be sure, for you have not been to the place, but he may have made so many ponds that the land may now consist of several disconnected islands.)
Your uncle Tom wants to sell the inherited land, but local rules now regulate property sales. Your uncle has been informed that, at his great-great-uncle's request, a law has been passed which establishe
ZOJ 1516--Uncle Tom's Inherited Land【二分图 && 求最大匹配数 && 经典建图】
最新推荐文章于 2019-03-13 08:24:22 发布
本文介绍了如何解决Uncle Tom在继承了一块包含水池的土地后,根据当地法规以长方形地块销售的问题。通过构建二分图并找到最大匹配数,确定最大可售地块数量。
摘要由CSDN通过智能技术生成