| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1324242 | speedcode | Balloons (CEOI11_bal) | C++17 | 97 ms | 5332 KiB |
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
vector<pair<double, double>> results;
vector<pair<double, double>> balls;
for (int i = 0; i < n; i++)
{
double x, r;
cin >> x >> r;
while(balls.size()){
auto &[x1, r1] = balls[balls.size()-1];
r = min(r, (x-x1)*(x-x1)/4.0/r1);
if(r >= r1){
balls.pop_back();
}else{
break;
}
}
results.push_back({x, r});
balls.push_back({x, r});
}
for(auto &[x1, r1] : results){
cout << setprecision(3) << fixed << r1 << '\n';
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
