当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3721:Darkterror's Combos

题目描述

In the game Dota-Allstars, Darkterror (faceless void) is famous for his Time Walk plus ChronoSpere skill combos. The combos take the following actions:

First, Darkterror can move himself from his initial position within a range of Rw unit(s) by the skill Time Walk. Then he can cast a ChronoSpere which freezes all the heroes it covers. The distance between the center of the sphere and Darkterror must be no further than Rc unit(s). And the radius of the sphere is R unit(s).

In a Dota-Allstars battle, Facer was blamed for his poor combos. He always froze his fellows and left his enemies at large. To rehabilitate his fame, Facer has practiced the hero thousands of times. Now he needs to analysis the replays and find out whether he made the best decision in performing the combos. Given the heroes' positions and their threat levels, Facer wants to know the maximum sum of threat levels can be covered by a ChronoSpere. 

输入解释

The first line of input consists of three integers, Rw, Rc and R. (0 ≤ Rw, Rc, R ≤ 1000000)

The following ten lines describe the heroes in the battle. Each line contains three integers, x, y, and l indicating the hero's position and the threat level. (-1000000 ≤ x, y, l ≤ 1000000). The first line of the ten always describes Darkterror and his threat level is always zero.

输出解释

Output the maximum sum

输入样例
100000 100000 1
100 100 0
-1 0 100
1 0 100
0 -1 100
0 1 100
999 1000 -100
1001 1000 -100
1000 999 -100
1000 1001 -100
1000 1000 100
输出样例
400

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-3721

最后修改于 2020-10-29T07:09:07+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000 65536