|
||||||||||
How many timesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1102 Accepted Submission(s): 340 Problem Description There are N circles on the plane. Dumbear wants to find a region which is covered by as many circles as possible. But Dumbear is very dumb, so he turns to momodi for help. But momodi is very busy. Can you help him find out the maximum times that a region can be covered? Notice that a point on a circle¡¯s boundary is considered to be covered by this circle. Input There are several test cases in the input. For each case, the first line contains an integer N (1¡Ü N ¡Ü 100) denotes the number of circles. For the next N lines, each line contains three integers X, Y, R denotes a circle whose center is (X, Y) (-10000 ¡Ü X, Y ¡Ü 10000) and radius is R (0 < R ¡Ü 5000). The input terminates by end of file marker. Output For each test case, output a single line contains only a number denotes the maximum times that a region can be covered. Sample Input
Sample Output
Author momodi & Dumbear@WHU Source | ||||||||||
|