# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
767260 |
2023-06-26T14:40:23 Z |
Alora |
Balloons (CEOI11_bal) |
C++17 |
|
2000 ms |
2580 KB |
#include <bits/stdc++.h>
#define name "cownav"
#define fi(i,a,b) for(int i = a; i <= b; i++)
#define fid(i,a,b) for(int i = a; i >= b; i--)
#define ll long long
#define f first
#define se second
#define pii pair<int, int>
#define getbit(i, j) ((i >> j) & 1)
#define pb push_back
#define all(v) v.begin(), v.end()
#define maxn 200005
const int M = 1e9 + 7;
using namespace std;
int n, x[maxn];
double r[maxn];
signed main(){
ios_base::sync_with_stdio(0);
cin.tie(NULL);
// freopen(name".in", "r", stdin);
//freopen(name".out", "w", stdout);
cin >> n;
fi(i, 1, n) cin >> x[i] >> r[i];
fi(i, 2, n){
fi(j, 1, i - 1){
ll A = 1ll*(x[i] - x[j])*(x[i] - x[j]);
double _r = A/(4*r[j]);
r[i] = min(r[i], _r);
}
}
fi(i, 1, n) cout << fixed << setprecision(3) << r[i] << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
10 numbers |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
2 numbers |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
505 numbers |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
340 KB |
2000 numbers |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
321 ms |
676 KB |
20000 numbers |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1967 ms |
1284 KB |
50000 numbers |
2 |
Correct |
1964 ms |
2128 KB |
49912 numbers |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2075 ms |
1476 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2075 ms |
1596 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2075 ms |
2088 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2068 ms |
2580 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |