Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
#define nl '\n'
#define ll long long
const int N = 1e5+5;
ll a[N], b[N];
ll dis(ll x, ll y, ll xx, ll yy){
return ((x-xx)*(x-xx)+(y-yy)*(y-yy));
}
int main() {
int n; cin >> n;
for(int i=0;i<n;++i) cin >> a[i] >> b[i];
float d = 0.0000000000002l;
for(int i=0;i<n;++i){
for(int j=0;j<n;++j){
d = max(d, (float) dis(a[i], b[i], a[j], b[j]));
// cerr << d << endl;
}
}
cout << fixed << setprecision(10) << sqrt(d) / 2.0<< nl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1123 Relic Rescue Radius!
- Contest
- Sylhet ICPC 2024 Collaborative Challenge: Episode 2
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-10-30 12:23:18
- Judged At
- 2024-10-30 12:23:18
- Judged By
- Score
- 30
- Total Time
- 2ms
- Peak Memory
- 540.0 KiB