Place the balloonProblem code: L5 |
All submissions for this problem are available.
Given a set of points on a plane, find the largest possible disc which does not "cover" any of these points (i.e., they can lie on the boundary of the disc, but not inside it) and which is constrained by this set of points (i.e., the disc cannot be moved to infinity along a continuous trajectory).
Input
Input will be consist of several test cases. First will be given 1 <= t <= 20, then number of testcases. Then t testcases follow. Each testcase is of following form. First, 1 <= n <= 50000, the number of points. The following n lines define the points; the i-th line contains two integers: -10000 <= xi,yi <= 10000
.
Output
Output exactly one value: the radius of largest possible disc satisfying the given property. If there is no such disc, output the value -1. Answers should be exact up to 10-6
Example
Input: 2 3 0 1 -1 -1 1 -1 4 0 1 -1-1 1 -1 0 0 Output: 1.25 -1
| Author: | admin |
| Date Added: | 15-12-2009 |
| Time Limit: | 1 - 10 sec |
| Source Limit: | 50000 Bytes |
| Languages: | ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.0.0-8, CPP 4.3.2, CS2, D, ERL, F#, FORT, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, PAS fpc, PAS gpc, PERL, PHP, PIKE, PRLG, PYTH, PYTH 3.1.2, RUBY, SCALA, SCM guile, SCM qobi, ST, TEXT, WSPC |
Comments
SUCCESSFUL SUBMISSIONS FOR THIS PROBLEM:
HELP
Program should read from standard input and write to standard output. After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Below are the possible results:
- Accepted
Your program ran successfully and gave a correct answer. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark. - Time Limit Exceeded
Your program was compiled successfully, but it didn't stop before time limit. Try optimizing your approach. - Wrong Answer
Your program compiled and ran succesfully but the output did not match the expected output. - Runtime Error
Your code compiled and ran but encountered an error. The most common reasons are using too much memory or dividing by zero. For the specific error codes see the help section. - Compilation Error
Your code was unable to compile. When you see this icon, click on it for more information.
If you are still having problems, see a sample solution here.

Fetching successful submissions

Please see the submission id
Please see the submission id 169192 and reply whether there is floating point error or logical error ?