#include <bits/stdc++.h>
using namespace std;
signed main() {
int n; cin>>n;
vector<pair<double,double>>v(n);
for(auto &z : v) cin>>z.first>>z.second;
double mx = 0;
for(int i = 0 ; i < n ; i++) {
double mn = INT_MAX;
for(int j = 0 ; j < n ; j++) {
if(i == j) continue;
double a = abs(v[i].first-v[j].first),b = abs(v[i].second-v[j].second);
mn = min(mn, (sqrt(a*a + b*b))/2);
}
mx=max(mx,mn);
}
cout << fixed << setprecision(8) << mx << " ";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
296 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Incorrect |
3 ms |
204 KB |
Output isn't correct |
7 |
Correct |
3 ms |
204 KB |
Output is correct |
8 |
Incorrect |
4 ms |
204 KB |
Output isn't correct |
9 |
Incorrect |
6 ms |
204 KB |
Output isn't correct |
10 |
Correct |
7 ms |
204 KB |
Output is correct |