| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1360126 | dukkha | Balloons (CEOI11_bal) | Pypy 3 | 168 ms | 131072 KiB |
import sys
stk = []
n = int(sys.stdin.readline())
arr = []
for _ in range(n):
arr.append(tuple(map(int, sys.stdin.readline().split())))
ans = []
for x, r in arr:
if not stk:
stk.append((x,r))
print(float(r))
continue
while stk:
y, t = stk[-1]
cand = min(r, (y-x)**2 /(4*t))
if cand >= t:
stk.pop()
continue
print(cand)
stk.append((x,r))
break
Compilation message (stdout)
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
