HBC14377Safest Buildings题解

庄子墨 算法基础篇 46 0
题库丰富多样,涵盖各个领域,全网最全C++题库,让您在练习中不断成长!
PUBG is a multiplayer online battle royale video game. In the game, up to one hundred players parachute onto an island and scavenge for weapons and equipment to kill others while avoiding getting killed themselves. BaoBao is a big fan of the game, but this time he is having some trouble selecting the safest building. There are n buildings scattering on the island in the game, and we consider these buildings as points on a two-dimensional plane. At the beginning of each round, a circular safe area whose center is located at withradiusRwill be spawned on the island. After some time, the safe area will shrink down towards a random circle with radius r. The whole new safe area is entirely contained in the original safe area , and the center of the new safe area is uniformly chosen within the original safe area. The buildings covered by the new safe area is called the safe buildings. Given the radius of the safe areas and the positions of the buildings, BaoBao wants to find all the buildings with the largest probability to become safe buildings.

PUBG is a multiplayer online battle royale video game. In the game, up to one hundred players parachute onto an island and scavenge for weapons and equipment to kill others while avoiding getting killed themselves. BaoBao is a big fan of the game, but this time he is having some trouble selecting the safest building. There are  n buildings scattering on the island in the game, and we consider these buildings as points on a two-dimensional plane. At the beginning of each round, a circular safe area whose center is located at (0, 0) with  radius R will be spawned on the island. After some time, the safe area will shrink down towards a random circle with radius  r(r ≤ R). The whole new safe area is entirely contained in the original safe area (may be tangent to the original safe area), and the center of the new safe area is uniformly chosen within the original safe area. The buildings covered by the new safe area is called the safe buildings. Given the radius of the safe areas and the positions of the buildings, BaoBao wants to find all the buildings with the largest probability to become safe buildings.

HBC14377Safest Buildings题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)

标签: HBC14377Safest Buildings题解