Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Darkterror's Combos
Description In the game Dota-Allstars, Darkterror (faceless void) is famous for his First, Darkterror can move himself from his initial position within a range of 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 R unit(s). And the radius of the sphere is _{c}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 Input The first line of input consists of three integers, R and _{c}R. (0 ≤ R, _{w}R, _{c}R ≤ 1000000)The following ten lines describe the heroes in the battle. Each line contains three integers, Output Output the maximum sum Sample Input 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 Sample Output 400 Source POJ Monthly Contest – 2009.02.22, Dagger |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator