首页 > 代码库 > (准备写)URAL1824 Ifrit Bomber 题解
(准备写)URAL1824 Ifrit Bomber 题解
http://acm.timus.ru/problem.aspx?space=1&num=1824
1824. Ifrit BomberTime limit: 0.5 second Memory limit: 64 MB In the six years that passed since the first experimental genie bombardments, Pitirim Schwartz has made considerable advance. His latest invention is an ifrit bottle, which has been developed especially for bombing large cities. Each ifrit from such a bottle ruins everything within a radius of r miles from the impact point. Only a few ifrit bottles are needed to demolish all n large cities of a neighboring country… Alas, Pitirim has very few ifrit bottles, so he has asked programmer Privalov to compute the minimal number of bottles needed for the destruction of all the cities. For the convenience of aiming, the bottles can only be dropped exactly on cities. The radius of destruction is so large that cities can be regarded as points of the plane. When an ifrit bottle is dropped, any city within or on the border of the destruction zone is demolished. |
30个城市,坐标为整数,0~1000。核弹炸的半径为整数,<=1000,只能在城市中投放。
求最少的核弹数,在哪几个城市投放,能炸完所有城市。
好像叫二分图的最小支配集…是个NP问题,只能搜索。
然后好像是用超碉的A*+dancinglinks,太强了,我不会口牙!
等我会了再来写
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。