F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

How many times

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/65536 K (Java/Others)
Total Submission(s): 1064    Accepted Submission(s): 327


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
3 0 0 1 1 0 1 2 0 1
 

Sample Output
3
 

Author
momodi & Dumbear@WHU
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-04 15:36:36, Gzip enabled