#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vector<pair<long double,long double>>v(n);
for(int i = 0;i<n;i++){
long double a,b;cin>>a>>b;
v[i]={a,b};
}
long double ma = 0.0;
for(int i = 0;i<n;i++){
long double mi = 1e9;
for(int j =0;j<n;j++){
if(i==j)continue;
long double a = abs(v[i].first-v[j].first)*abs(v[i].first-v[j].first) , b= abs(v[i].second-v[j].second)*abs(v[i].second-v[j].second);
long double r = (sqrt(a+b))/2.0;
mi = min(mi,r);
}
ma = max(ma,mi);
}
cout<<setprecision(9)<<fixed<<ma;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Incorrect |
5 ms |
204 KB |
Output isn't correct |
7 |
Correct |
5 ms |
204 KB |
Output is correct |
8 |
Incorrect |
11 ms |
332 KB |
Output isn't correct |
9 |
Incorrect |
18 ms |
344 KB |
Output isn't correct |
10 |
Correct |
17 ms |
352 KB |
Output is correct |